Skip to main content
Premium Members Only
Join to unlock this tutorial and all of our courses.
Premium Tutorial

Filament Render Hooks: 4 Practical Examples

October 04, 2023
5 min read

Premium Members Only

This advanced tutorial is available exclusively to Laravel Daily Premium members.

Premium membership includes:

Access to all premium tutorials
Video and Text Courses
Private Discord Channel
Gubin avatar

Example 1. Login Page: Button

Login using modal box

<x-filament::modal>
<x-slot name="trigger">
<x-filament::button
color="gray" class="w-full">
login
</x-filament::button>
</x-slot>
{{-- Modal content Customize a livewire component --}}
<livewire:scan-login :redirect="'/admin'"/>
</x-filament::modal>
Daniel Schweiger avatar

->renderHook('panels::resource.pages.list-records.table.before', fn (array $scopes): View => view('filament.test-view'), scopes: [ \App\Filament\Resources\TransactionResource\Pages\ManageTransactions::class ], )

How can I pass the current Transaction Object to the view?

Nerijus avatar

Don't think you can.