entrust
entrust copied to clipboard
Role-based Permissions for Laravel 5
hi i am using laravel 5.7 and when i use EntrustUserTrait In my user model and wnat to login i see this error
Hello there, I am using this plugin in laravel, when i put this condition in laravel controller > $user= Auth::user(); if(Auth::user()->hasRole(['owner', 'admin']){ //my code goes here }else{ return response()->json(['status'=>0,'data'=>'Access Denied'],$this->...
Hi, is it posible to use Entrust to give a Role to a user, but, for example, to different Companies? I want to have Roles based on another Model object,...
Hi, I want to show some specific menu 2 users. But If I set like blew code it's not working. Can anyone have any suggestion, How can I set a...
These commits fixes the key stored in the cache to match laravel conventions. This is important when you have multiple Laravel apps using the same caching server, because they override...
Hi, On sites with a large number of permissions and roles, and pages where you need to check those to display content, it seems that this incurs quite a few...
I am getting the following error when I try to run `php artisan db:seed --class=UserTableSeeder`: ``` [BadMethodCallException] Call to undefined method Illuminate\Database\Query\Builder::attachRole() ``` I have created a UserTableSeeder.php file that...
Using `"zizaco/entrust": "5.2.x-dev"` with Laravel 5.2 I'm running into an issue using the route filters. It looks like they aren't yet designed for Laravel 5.2. The error I get when...
There is a feature to attache role with the user `$user->attachRole($admin); ` but there should also be a feature for update User Role, like `$user->updateRole($agent); ` other wise need to...