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
which says "In a service provider, use the Statamic\API\User::repository() method to define a custom repository driver:", but the code block has...
Statamic\Facades\User::repository('custom', function ($app, $config) {
returnnewCustomUserRepository;
});
I do not see a Statamic\API\User class, and the abstract class Statamic\Contracts\Auth\UserRepository for the Statamic\Facades\User facade does not have a repository method defined.
The only place that I see a method called repository is in Statamic\Auth\UserRepositoryManager, which appears to be a getter for the repository, not a setter.
In our app, we use spatie/laravel-permission, and were planning on making a custom driver to leverage the roles & permissions already in the system, so we were planning on building a driver.
Anyhow, I cannot tell if this is an issue with the docs, the code or the user?
Thanks!
The text was updated successfully, but these errors were encountered:
This issue has not had recent activity and has been marked as stale — by me, a robot. Simply reply to keep it open and send me away. If you do nothing, I will close it in a week. I have no feelings, so whatever you do is fine by me.
On a fresh install on an existing Laravel 6 app, we are trying to make a custom user repository per the docs here...
https://statamic.dev/knowledge-base/storing-users-somewhere-custom
which says "In a service provider, use the Statamic\API\User::repository() method to define a custom repository driver:", but the code block has...
I do not see a
Statamic\API\User
class, and the abstract classStatamic\Contracts\Auth\UserRepository
for theStatamic\Facades\User
facade does not have arepository
method defined.The only place that I see a method called
repository
is inStatamic\Auth\UserRepositoryManager
, which appears to be a getter for the repository, not a setter.In our app, we use spatie/laravel-permission, and were planning on making a custom driver to leverage the roles & permissions already in the system, so we were planning on building a driver.
Anyhow, I cannot tell if this is an issue with the docs, the code or the user?
Thanks!
The text was updated successfully, but these errors were encountered: