--- title: Render hooks --- ## Overview Filament allows you to render Blade content at various points in the frameworks views. It's useful for plugins to be able to inject HTML into the framework. Also, since Filament does not recommend publishing the views due to an increased risk of breaking changes, it's also useful for users. ## Registering render hooks To register render hooks, you can call `FilamentView::registerRenderHook()` from a service provider or middleware. The first argument is the name of the render hook, and the second argument is a callback that returns the content to be rendered: ```php use Filament\Support\Facades\FilamentView; use Illuminate\Support\Facades\Blade; FilamentView::registerRenderHook( 'panels::body.start', fn (): string => Blade::render('@livewire(\'livewire-ui-modal\')'), ); ``` You could also render view content from a file: ```php use Filament\Support\Facades\FilamentView; use Illuminate\Contracts\View\View; FilamentView::registerRenderHook( 'panels::body.start', fn (): View => view('impersonation-banner'), ); ``` ## Available render hooks ### Panel Builder render hooks - `panels::auth.login.form.before` - Before login form - `panels::auth.login.form.after` - After login form - `panels::body.start` - After `` - `panels::body.end` - Before `` - `panels::content.end` - After page content, inside `
` - `panels::content.start` - Before page content, inside `
` - `panels::footer` - Footer of the page - `panels::global-search.after` - After the [global search](../panels/resources/global-search) container, inside the topbar - `panels::global-search.before` - Before the [global search](../panels/resources/global-search) container, inside the topbar - `panels::global-search.end` - The end of the [global search](../panels/resources/global-search) container - `panels::global-search.start` - The start of the [global search](../panels/resources/global-search) container - `panels::head.end` - Before `` - `panels::head.start` - After `` - `panels::page.end` - End of the page content container, also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::page.footer-widgets.after` - After the page footer widgets, also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::page.footer-widgets.before` - Before the page footer widgets, also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::page.header-widgets.after` - After the page header widgets, also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::page.header-widgets.before` - Before the page header widgets, also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::page.start` - Start of the page content container, also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::resource.pages.list-records.table.after` - After the resource table, also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::resource.pages.list-records.table.before` - Before the resource table, also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::resource.pages.list-records.tabs.end` - The end of the filter tabs (after the last tab), also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::resource.pages.list-records.tabs.start` - The start of the filter tabs (before the first tab), also [can be scoped](#scoping-render-hooks) to the page or resource class - `panels::resource.relation-manager.after` - After the relation manager table, also [can be scoped](#scoping-render-hooks) to the page or relation manager class - `panels::resource.relation-manager.before` - Before the relation manager table, also [can be scoped](#scoping-render-hooks) to the page or relation manager class - `panels::scripts.after` - After scripts are defined - `panels::scripts.before` - Before scripts are defined - `panels::sidebar.nav.end` - In the [sidebar](../panels/navigation), before `` - `panels::sidebar.nav.start` - In the [sidebar](../panels/navigation), after `