F
Filamentβ€’9mo 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β€’9mo ago
getHeaderActions should work.. what is the error?
burhan
burhanβ€’9mo 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β€’9mo ago
You need to put inside CreateResource.php inside pages.. and yes if you return empty array, button will not show
burhan
burhanβ€’9mo ago
Thank you, I edited the wrong file πŸ˜…
hashim199
hashim199β€’4mo ago
i want to add a button with create button
No description
Vp
Vpβ€’4mo 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