F
Filamentβ€’14mo ago
burhan

Add a button next to the 'new resource' button.

I have searched in the documentation but have not found any clues. 'getHeaderAction' is not working.
Solution:
You need to put inside CreateResource.php inside pages.. and yes if you return empty array, button will not show
Jump to solution
6 Replies
Vp
Vpβ€’14mo ago
getHeaderActions should work.. what is the error?
burhan
burhanOPβ€’14mo ago
No error, just don't show any change. Only default 'new resource' button even when i return empty array ( should it return no button right? , or i just missed something?)
No description
Solution
Vp
Vpβ€’14mo ago
You need to put inside CreateResource.php inside pages.. and yes if you return empty array, button will not show
burhan
burhanOPβ€’14mo ago
Thank you, I edited the wrong file πŸ˜…
hashim199
hashim199β€’9mo ago
i want to add a button with create button
No description
Vp
Vpβ€’9mo ago
Go to List...Resource.php inside pages and you'll see getHeaderActions() and inside that you can add custom button. If it's simple resource then you need to go inside Manage... inside pages
Want results from more Discord servers?
Add your server