Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Role Users function not working $admin->users(); #183

Open
mahmoud-birdsol opened this issue Aug 1, 2016 · 3 comments
Open

Role Users function not working $admin->users(); #183

mahmoud-birdsol opened this issue Aug 1, 2016 · 3 comments

Comments

@mahmoud-birdsol
Copy link

Laravel 5.2 Has a different config/auth file for the model you just need to change

public function users()
{
return $this->belongsToMany(config('auth.model'))->withTimestamps();
}

to

public function users()
{
return $this->belongsToMany(config('auth.providers.users.model'))->withTimestamps();
}

or just add another configuration variable in your config file and use that

@johannesschobel
Copy link

I would prefer the config variable approach. What do you think about this solution?

@johannesschobel
Copy link

Oh, and can you specifically "tag L5.2" in the headline? ;)

@johannesschobel
Copy link

Actually, there is already a pull request pending for this issue: See here #157

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants