F
Filament2mo ago
Neamix

PanelsRenderHook not found

I am trying to customize body start of filament so i used panal render hook here is my code
use Filament\View\PanelsRenderHook;

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('impersonation-banner'),
);
use Filament\View\PanelsRenderHook;

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('impersonation-banner'),
);
but i am getting this error
Class "Filament\View\PanelsRenderHook" not found
Class "Filament\View\PanelsRenderHook" not found
Solution:
run composer update
Jump to solution
1 Reply
Solution
LeandroFerreira
LeandroFerreira2mo ago
run composer update
Want results from more Discord servers?
Add your server