I am currently working on a Laravel project using filamentPHP. However I cannot find a way to delete the create functionality for a specific resource. Considering there is a resource named Customer, in the view page, I would like to remove the new customer button located at the top of the list. Is there any way to do that?
I'm using filament v2.16.66 with Laravel 9.19.
What works for me in order to remove create button in certain lists, is adding the following function in eg: App\Filament\Resources\CustomerResource
public static function canCreate(): bool
{
return false;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With