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 tried to apply the shouldApplyBannedAtScope() method on the User model, and when I called $user->unban() in my unit test, it started complaining about the bans property being called on NULL in BanObserver. That's because the morphTo wasn't able to locate the now-deleted model through the bannable property.
The text was updated successfully, but these errors were encountered:
I tried to apply the
shouldApplyBannedAtScope()
method on theUser
model, and when I called$user->unban()
in my unit test, it started complaining about thebans
property being called onNULL
inBanObserver
. That's because themorphTo
wasn't able to locate the now-deleted model through thebannable
property.The text was updated successfully, but these errors were encountered: