This commit is contained in:
Dan Harrin
2025-04-14 21:44:15 +01:00
parent 3a6f42123e
commit e64cb2f6df
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -64,7 +64,7 @@ Make sure your `routes/web.php` file doesn't already define the `''` or `'/'` ro
## Render hooks
[Render hooks](../support/render-hooks) allow you to render Blade content at various points in the framework views. You can [register global render hooks](../support/render-hooks#registering-render-hooks) in a service provider or middleware, but it also allows you to register render hooks that are specific to a panel. To do that, you can use the `renderHook()` method on the panel configuration object. Here's an example, integrating [`wire-elements/modal`](https://github.com/wire-elements/modal) with Filament:
[Render hooks](../advanced/render-hooks) allow you to render Blade content at various points in the framework views. You can [register global render hooks](../support/render-hooks#registering-render-hooks) in a service provider or middleware, but it also allows you to register render hooks that are specific to a panel. To do that, you can use the `renderHook()` method on the panel configuration object. Here's an example, integrating [`wire-elements/modal`](https://github.com/wire-elements/modal) with Filament:
```php
use Filament\Panel;
@@ -82,7 +82,7 @@ public function panel(Panel $panel): Panel
}
```
A full list of available render hooks can be found [here](../support/render-hooks#available-render-hooks).
A full list of available render hooks can be found [here](../advanced/render-hooks#available-render-hooks).
## Setting a domain
@@ -291,7 +291,7 @@ class CreatePost extends CreateRecord
## Registering assets for a panel
You can register [assets](../support/assets) that will only be loaded on pages within a specific panel, and not in the rest of the app. To do that, pass an array of assets to the `assets()` method:
You can register [assets](../advanced/assets) that will only be loaded on pages within a specific panel, and not in the rest of the app. To do that, pass an array of assets to the `assets()` method:
```php
use Filament\Panel;
@@ -309,7 +309,7 @@ public function panel(Panel $panel): Panel
}
```
Before these [assets](../support/assets) can be used, you'll need to run `php artisan filament:assets`.
Before these [assets](../advanced/assets) can be used, you'll need to run `php artisan filament:assets`.
## Applying middleware
+1 -1
View File
@@ -318,4 +318,4 @@ FilamentAsset::register([
]);
```
You can find out more about [asset registration](../support/assets), and even [register assets for a specific panel](../panel-configuration#registering-assets-for-a-panel).
You can find out more about [asset registration](../advanced/assets), and even [register assets for a specific panel](../panel-configuration#registering-assets-for-a-panel).