F
Filament6mo 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
Roberto6mo ago
may be put scopes in an array
Solution
danzzz
danzzz6mo ago
solution: ->renderHook( 'tables::toolbar.search.before', fn (): View => view('filament.test-view'), scopes: \App\Filament\Resources\TransactionResource\Pages\ManageTransactions::class, )