feat: add admin env badge, quick post button, and harden plugin enable
Build and Deploy / verify (push) Failing after 15m17s
Build and Deploy / deploy (push) Skipped

Show local/prod in the Filament topbar, jump to create post in one click, tighten sidebar spacing, and stop Hello World from 500ing when its tables are missing.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
gouki
2026-09-18 08:24:16 +00:00
co-authored by Cursor
parent b39423831c
commit 469160dc3f
19 changed files with 825 additions and 43 deletions
@@ -21,6 +21,7 @@ use Filament\Pages\Dashboard;
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
use Filament\View\PanelsRenderHook;
use Filament\Widgets\AccountWidget;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
@@ -75,6 +76,10 @@ class AdminPanelProvider extends PanelProvider
->icon('heroicon-o-squares-plus')
->url(fn (): string => \App\Filament\Pages\ThemeInject::getUrl()),
])
->renderHook(
PanelsRenderHook::USER_MENU_BEFORE,
fn (): \Illuminate\Contracts\View\View => view('filament.hooks.topbar-tools')
)
->navigationGroups([
NavigationGroup::make('内容'),
NavigationGroup::make('管理'),