Custom page in resource
I want to create a custom page in my resource.I cant figure out how to call it from my list page in resource so that it redirects to the custom page.
5 Replies
Just add it to the pages array in the resource
i have added it in the resources getPages Array. but when i call it for example on list products i do Action::make('')->action(url('that url which i specified there on get pages array')). it doesnt work button just do nothing.
call
->url
instead ->action
https://filamentphp.com/docs/3.x/actions/advanced#action-utility-injection->url(fn ($record) => YourResource::getUrl('page-name', ['record' => $record]))
Solution
okay okay thanks i was calling url in the action.