Model instance isn't updating
I have a character model that can be soft-deleted. However whenever I try to save the updated model instance in the admin panel it shows the
saved
notification, but on accessing the model again it reverts to the previous state. Attached is the character panel code. I originally thought it was my polocies, but I set everything to true and the issue still persists.
Update: Name and Rank is updating, every other field reverts to the previous state.Solution:Jump to solution
Does your Character model $fillable array have all the elements you want to update?
2 Replies
Solution
Does your Character model $fillable array have all the elements you want to update?
I am so dumb, that seemed to work. Thanks