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
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
is there an observer in app/Observers for this model
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
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
cant find the observer folder
oh
i think its policy
yup.
yeah when creating model with -a it creates policy for all model
now i have to return true; for all
thanks btw
everyone forgets that