Attempt at making $blueprint work correctly in admin layout.

This commit is contained in:
purple 2023-09-11 10:38:21 +02:00
parent acc1a28400
commit 720f6783ef

View file

@ -1,7 +1,10 @@
@php @php
// if this works i'm going to be really happy // Allow BlueprintExtensionLibrary to work in all admin views without
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary; // modifying all admin page controllers. Doing this should preserve
$blueprint = new BlueprintExtensionLibrary(); // basic compatibility for other modifications.
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary;
$settings = app()->make('Pterodactyl\Contracts\Repository\SettingsRepositoryInterface');
$blueprint = app()->make(BlueprintAdminLibrary::class, ['settings' => $settings]);
@endphp @endphp
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>