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
It is correct to use 'getMorphClass' with an alias on the 'user_type' field of the History model, rather than directly specifying the '\App\User' class name.
Hello!
It is correct to use 'getMorphClass' with an alias on the 'user_type' field of the History model, rather than directly specifying the '\App\User' class name.
history/src/HistoryObserver.php
Line 119 in bf2c637
I suggest
return static::getAuth()->check() ? static::getAuth()->user()->getMorphClass() : null;
Of course, some changes will be required in other files as well.
Thank you for your attention.
The text was updated successfully, but these errors were encountered: