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 have a base Model class where I added: use BroadcastsEvents;
I get this error:
Non-static method App\Models\Campaign::trashed() cannot be called statically
Which makes sense because in Illuminate\Database\Eloquent\SoftDeletes it defines the trashed() method as: public function trashed() but in BroadcastEvents it calls it like this:
Description:
I have a base Model class where I added:
use BroadcastsEvents;
I get this error:
Which makes sense because in
Illuminate\Database\Eloquent\SoftDeletes
it defines thetrashed()
method as:public function trashed()
but inBroadcastEvents
it calls it like this:Steps To Reproduce:
use BroadcastsEvents;
to a model that also hasuse SoftDeletes;
Update: while there is a "restored" model event, there doesn't appear to be a "trashed" model event.
The text was updated successfully, but these errors were encountered: