You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was following the Getting Started guide related to the unguarding all model in this section.
However, I encountered an error when I tried to put the example code provided on the page.
Since I used --soft-deletes when generating the resources, I wondered, is there something wrong with the soft deletes? So I checked my model, and it had invoked the SoftDeletes trait as well.
However, I've managed to get it done by calling the parent::boot() from my model's boot. Something like this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Package
Panel builder
Package Version
v3.2.108
How can we help you?
I was following the Getting Started guide related to the unguarding all model in this section.
However, I encountered an error when I tried to put the example code provided on the page.
Here is the code from the docs:
And then I encounter the following error
It seems that my model tried to override a static method as a non-static method, thus I changed the method as follows
The previous error has been resolved. And then another error appeared..
The error points to my resource file, to these lines:
Since I used
--soft-deletes
when generating the resources, I wondered, is there something wrong with the soft deletes? So I checked my model, and it had invoked theSoftDeletes
trait as well.However, I've managed to get it done by calling the
parent::boot()
from my model's boot. Something like thisMy PHP, Laravel, and Filament version:
Beta Was this translation helpful? Give feedback.
All reactions