Index page not showing the create button for the resource

Installed filament for a friend. Create button didnt show up on the index page. Same goes to edit and delete button.
8 Replies
black ka1ser
black ka1serOP2y ago
I tried inserting a row manually into the table. The table displays the data. However there are no buttons at all By manually i mean inserting via db directly
Dan Harrin
Dan Harrin2y ago
is there an observer in app/Observers for this model
black ka1ser
black ka1serOP2y ago
nope i think i figured it out i havent do the $fillable part for the model however after i did that there are still no buttons there still no buttons even after i deleted and re-created the resource
Dan Harrin
Dan Harrin2y ago
are you sure the buttons will be hidden if there is an observer that has methods that return nothing you need to make sure they return true
black ka1ser
black ka1serOP2y ago
cant find the observer folder oh i think its policy
Dan Harrin
Dan Harrin2y ago
yup.
black ka1ser
black ka1serOP2y ago
yeah when creating model with -a it creates policy for all model now i have to return true; for all thanks btw
Dan Harrin
Dan Harrin2y ago
everyone forgets that
Want results from more Discord servers?
Add your server