roles
roles copied to clipboard
Powerful package for handling roles and permissions in Laravel 5
Hello, I using `\Bican\Roles\Middleware\VerifyRole::class,` and got a problem about if user not login I want to redirect to `auth/login` but this class is alway throw to `RoleDeniedException`. So best way...
Been having a hard time trying to figure why my app was stalling. Turns out that this check on attachRoles fails. ``` $result = false; if($user->attachRole($role)) { $result = true;...
So this is what i am doing in order: I have set public $timestamps = true; in model Role_User.php in Tinker: $user = App\Models\User::find(1); $role = App\Models\Role::find(1); $user->attachRole($role) => null
Hi, in my usercontroller i have the following store function ``` public function store(Request $request) { $user = new User; $user->name = \Request::input('name'); $user->email = \Request::input('email'); $user->password = \Request::input('password'); $user->save();...
If using the following code where the primary ID isn't available using the getRoles method fails by bringing back an empty collection because the model's ID isn't loaded ``` /**...
I need to be able to check a `ManyToMany` relationship for entity checking, but see that `allowed` is coded to check the entity for a column. I figured before I...
This is similar to #88 but MSSQL/TSQL won't allow columns in SELECT that aren't in GROUP BY or an aggregate. So I get the following when using `$model->can('permissionslug')`: ``` [2015-07-30...