entrust icon indicating copy to clipboard operation
entrust copied to clipboard

Role-based Permissions for Laravel 5

Results 117 entrust issues
Sort by recently updated
recently updated
newest added

This error is thrown when someone tries to run `php artisan entrust:migration` command. Method Zizaco\Entrust\MigrationCommand::handle() does not exist Way around it has been to edit `vendor/zizaco/entrust/src/commands/MigrationCommand.php` and change `public function...

Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\User given, called in C:\composer\project\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php on line 378

Consider the following case: I am going to delete a $user which has a relation to a record in the `tickets` table. The tickets relation looks like: ``` `tickets` user_id...

I have installed Entrust on laravel 5.3 . after instalation it does not migration.it give error as defined upper. C:\xampp\htdocs\noissue>php artisan entrust:migration Tables: roles, role_user, permissions, permission_role A migration that...

In **the Checking for Roles & Permissions** section I think you made a small mistake in your comments! $ user-> hasRole (['owner', 'admin'], true); // false, user does not have...

I've been using this method of checking for role `Auth::user()->hasRole('admin')`, throughout my `layout` and `view` files. It was only until I installed `Laravel Debugbar` that I realise there were multiple...

Basically #800 but with latest base fork (supporting Laravel 5.5) - [x] Added docblocs which were missing in #800 - [x] Added `scopeWithPermission` to `EntrustUserTrait.php` - [x] Updated README.md Why?...

I'm getting the following error when trying to migrate (php artisan migrate) " SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL : alter table `assigned_roles` add constraint assigned_roles_user_id_foreig...

Bug

Hello, I would like your idea about a problem I have. My application has Users who have Roles and Permissions. The difficulty I have is that on the application the...

by default $fillable is null, when use ``` php $owner = Role::firstOrCreate([ 'name' => 'owner', 'display_name' => 'Project Owner', 'description' => 'User is the owner of a given project', ]);`...