Hi,
I'm getting several errors when trying to access the forum from within my laravel app:
Waterhole\Models\Channel::allPermitted(): Argument #1 ($user) must be of type ?Waterhole\Models\User, App\Models\User given, called in /var/www/html/vendor/waterhole/core/src/Scopes/PermittedScope.php on line 44
and
Call to undefined method App\Models\User::preferredLocale()
First error appears after trying to get around the second error by adding a preferredLocale method to App\Models\User.
It seems that in some situations App\Models\User is being used instead of Waterhole\Models\User?
Am I overseeing something or is this a bug?
Thanks,
Emmanuel
1 Comment
Nope! Not a bug! I forgot to add the necessary classes to my user model:
AuthenticatesWaterhole & HasWaterholeUser
Problem solved...