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 ka1ser16mo 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 Harrin16mo ago
is there an observer in app/Observers for this model
black ka1ser
black ka1ser16mo 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 Harrin16mo 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 ka1ser16mo ago
cant find the observer folder oh i think its policy
Dan Harrin
Dan Harrin16mo ago
yup.
black ka1ser
black ka1ser16mo 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 Harrin16mo ago
everyone forgets that
Want results from more Discord servers?
Add your server
More Posts