From 2169beb507dc799135d5437e2af06afcf94414bf Mon Sep 17 00:00:00 2001 From: purple Date: Wed, 10 Apr 2024 10:19:55 +0200 Subject: [PATCH] fix `views` `build`: Server error upon visiting extension pages with custom controllers --- .../blueprint/private/build/extensions/controller.build | 2 -- resources/views/blueprint/admin/admin.blade.php | 2 ++ resources/views/blueprint/admin/template.blade.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blueprint/extensions/blueprint/private/build/extensions/controller.build b/blueprint/extensions/blueprint/private/build/extensions/controller.build index 5937fe4..2b32eac 100644 --- a/blueprint/extensions/blueprint/private/build/extensions/controller.build +++ b/blueprint/extensions/blueprint/private/build/extensions/controller.build @@ -3,7 +3,6 @@ namespace Pterodactyl\Http\Controllers\Admin\Extensions\[id]; use Illuminate\View\View; -use Pterodactyl\Models\Egg; use Illuminate\View\Factory as ViewFactory; use Pterodactyl\Http\Controllers\Controller; use Pterodactyl\Services\Helpers\SoftwareVersionService; @@ -30,7 +29,6 @@ class [id]ExtensionController extends Controller return $this->view->make('admin.extensions.[id].index', [ 'blueprint' => $this->blueprint, 'version' => $this->version, - 'eggs' => Egg::all(), 'root' => $rootPath ]); } diff --git a/resources/views/blueprint/admin/admin.blade.php b/resources/views/blueprint/admin/admin.blade.php index fe21d8e..9228bf5 100644 --- a/resources/views/blueprint/admin/admin.blade.php +++ b/resources/views/blueprint/admin/admin.blade.php @@ -2,10 +2,12 @@ make('Pterodactyl\Contracts\Repository\SettingsRepositoryInterface'); $blueprint = app()->make(BlueprintExtensionLibrary::class, ['settings' => $settings]); $PlaceholderService = app()->make(BlueprintPlaceholderService::class); + $Eggs = Egg::all(); ?> @endsection diff --git a/resources/views/blueprint/admin/template.blade.php b/resources/views/blueprint/admin/template.blade.php index 986072a..1437afe 100644 --- a/resources/views/blueprint/admin/template.blade.php +++ b/resources/views/blueprint/admin/template.blade.php @@ -61,7 +61,7 @@