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

in Laravel 5.3 i am gettin this error `{"message":"Unauthenticated.","status_code":500,"debug":` when trying to run index method that `return User::all();` in HomeController and in my api.php ``` `$api= app('Dingo\Api\Routing\Router'); //Route::get('/user', function (Request...

This is a great library, I just started a bare project without using frameworks, but I miss its features. I guess I can still use it because I adopted Eloquent...

As I debugged, `Zizaco\Entrust\Traits\EntrustUserTrait` conflicts with `Illuminate\Foundation\Auth\Access\Authorizable`. Both have `can()` method. The fix is to rename `can` method in `EntrustUserTrait` to `hasPermission` or resolve the conflict inside the `User` class...

Add entrust.cache_ttl as default TTL value for permission and role so package will work out of the box. Since cache.ttl is not a default laravel configuration.

I was trying to use @role('role') as suggested in the documentation but got the following error Call to undefined method Illuminate\Database\Query\Builder::hasRole().

It appears that the new [Authorizable](https://github.com/laravel/framework/blob/5.1/src/Illuminate/Foundation/Auth/Access/Authorizable.php) trait also has a **can** method. I have temporarily resolved it using **may** instead which I believe is grammatically more correct anyway. ``` use...

hi, i want to set @role around some tags in blade file, but i cant set multiple role names for that. im doing that in this way: @role('stores-owner', 'owner') //-----...

5.2.x-dev creates an Error: Method Zizaco\Entrust\MigrationCommand::handle() does not exist on Laravel 5.5. when creating migrations: php artisan entrust:migration

How should I create default roles and permissions ? The ones that should be by default in my app (admin role would suit me for now). Where should I put...