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
When you have a column in your users table called notifications, logging into the control panel produces the error Call to undefined method Statamic\Auth\Eloquent\User::morphMany()
How to reproduce
Create a statamic site, in your users table add a column called notifications, log into the control panel, once logged in you will see the error
Statamic seems to be trying to call all the columns of the user table on the statamic user, which partly works on notifications because of the notifiable trait, but the $this->morphMany call within HasDatabaseNotifications in laravel isn't valid on the stamic user
The text was updated successfully, but these errors were encountered:
Bug description
When you have a column in your users table called
notifications
, logging into the control panel produces the errorCall to undefined method Statamic\Auth\Eloquent\User::morphMany()
How to reproduce
Create a statamic site, in your users table add a column called notifications, log into the control panel, once logged in you will see the error
Logs
Environment
Installation
Existing Laravel app
Antlers Parser
None
Additional details
Statamic seems to be trying to call all the columns of the user table on the statamic user, which partly works on notifications because of the notifiable trait, but the
$this->morphMany
call withinHasDatabaseNotifications
in laravel isn't valid on the stamic userThe text was updated successfully, but these errors were encountered: