F
Filament12mo ago
danzzz

renderHook scope dont work

dont't work, shows nowhere, should show on the table in the TransactionResource ->renderHook( 'tables::toolbar.search.before', fn (): View => view('filament.teste'), scopes: TransactionResource::class ) works on all tables: ->renderHook( 'tables::toolbar.search.before', fn (): View => view('filament.teste') ) anything wrong here with first snippet?
Solution:
solution: `->renderHook( 'tables::toolbar.search.before', fn (): View => view('filament.test-view'), scopes: \App\Filament\Resources\TransactionResource\Pages\ManageTransactions::class,...
Jump to solution
2 Replies
Roberto
Roberto12mo ago
may be put scopes in an array
Solution
danzzz
danzzz12mo ago
solution: ->renderHook( 'tables::toolbar.search.before', fn (): View => view('filament.test-view'), scopes: \App\Filament\Resources\TransactionResource\Pages\ManageTransactions::class, )
Want results from more Discord servers?
Add your server