F
Filament2mo ago
Renzo

Getting rid of create button

Hi, I currently have 2 resource, MyApplicationResource & ReferralResource. I generated the ReferralResource but it uses the data from MyApplicationResource. Is there a way to get rid of the Create Referral button on my ReferralResource?
class ReferralResource extends Resource
{
protected static ?string $model = MyApplication::class;
class ReferralResource extends Resource
{
protected static ?string $model = MyApplication::class;
Solution:
In your app/Filament/Resources/<YourResource>/Pages/ there should be a list file there. protected function getHeaderActions(): array { return [...
Jump to solution
3 Replies
Solution
zander9255
zander92552mo ago
In your app/Filament/Resources/<YourResource>/Pages/ there should be a list file there. protected function getHeaderActions(): array { return [ //Actions\CreateAction::make(), ]; } That is how I got rid of my button.
Renzo
Renzo2mo ago
Thank you so much!
zander9255
zander92552mo ago
No problem!