Attempt at making $blueprint work correctly in admin layout.
This commit is contained in:
parent
acc1a28400
commit
720f6783ef
1 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue