Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add role by slug return error, but add role by name works #17

Open
astroanu opened this issue Oct 18, 2015 · 2 comments
Open

add role by slug return error, but add role by name works #17

astroanu opened this issue Oct 18, 2015 · 2 comments

Comments

@astroanu
Copy link

// slug on db super_admin 
// name on db Super Admin 

$admin->addRole('Super Admin'); // works
$admin->addRole('super_admin'); // not working returns following error

/**
* [Illuminate\Database\Eloquent\ModelNotFoundException]
*  No query results for model [Pingpong\Trusty\Role].
*/
@astroanu
Copy link
Author

astroanu commented Jan 7, 2016

hey has this fixed ?

@minasvisual
Copy link

Has a conflict with authorization trait, remove authotization trait and contract of user model and works.

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

No branches or pull requests

2 participants