F
Filamentβ€’10mo ago
Helder Lima

Missing create button after v3 upgrade

After updating an application to v3, some resources no longer display the create button. I have some policies in place, but this does not seem to be being considered (I deleted them all for testing and there were no changes). Any leads on how to debbug it?
No description
No description
Solution:
Go to your create / edit classes and add them. Not the answer you looking for. Some times you have to do things manually, but I would have expected the upgrade script to handle that, unless you have a non typical directory structure.
Jump to solution
3 Replies
Solution
awcodes
awcodesβ€’10mo ago
Go to your create / edit classes and add them. Not the answer you looking for. Some times you have to do things manually, but I would have expected the upgrade script to handle that, unless you have a non typical directory structure.
awcodes
awcodesβ€’10mo ago
If you need to see the implementation just generate a dummy resource and see what needs to be added to your other classes.
Helder Lima
Helder Limaβ€’10mo ago
use Filament\Actions\CreateAction;

class ListSliders extends ListRecords
{
protected static string $resource = SliderResource::class;

protected function getActions(): array
{
return [
CreateAction::make(),
];
}
}
use Filament\Actions\CreateAction;

class ListSliders extends ListRecords
{
protected static string $resource = SliderResource::class;

protected function getActions(): array
{
return [
CreateAction::make(),
];
}
}
After that I could see the create button. Thank you sir! πŸ™
No description