Entrust is a plugin to add role-based permissions to Laravel.
Questions tagged [entrust]
115 questions
1
vote
1 answer
create specific upload folder based on user role and limit access to other folder in laravel elfinder
In my CMS , I am using Zizaco/entrust/ as an ACL manager and laravel-elfinder as a file manager and uploader.
Both work fine and do not have any problem.
Now, I want to limit access of users that have Specified roles and Permissions to folders that…

Ahmad Badpey
- 6,348
- 16
- 93
- 159
1
vote
1 answer
@role directive for multiple roles in Zizaco/entrust laravel package
I am using Zizaco/entrust laravel package and now I want to use @role directive in blade template to show an item only to some defined roles like this :
@role('developer,administrator')

Ahmad Badpey
- 6,348
- 16
- 93
- 159
1
vote
1 answer
Using Entrust with Laravel built-in Auth system
I used php artisan make:auth command in my Laravel project and this is how my unchanged App\Models\User.php looks like:

nolem
- 105
- 10
1
vote
2 answers
How i can assign a role to a user during signup? ( Entrust ) ( Laravel 5.1 )
I have just installed in my laravel 5.1 project the entrust package you can find this package here Entrust Package Github .
I want to assign a role to a user after the sign up post button because after that each user will complete a different…

arispapapro
- 319
- 1
- 3
- 10
0
votes
0 answers
how automatically redis key generated on my server?
Laravel Framework 5.4.36
in my server i use the redis server for cache and also use some libraries redis, predis, jwt and zizaco entrus, also see with specific version like bellow in my project composer.json file
"require": {
"illuminate/redis":…

objg
- 11
- 2
0
votes
1 answer
InvalidArgumentException in ability middleware in Zizaco / entrust
I am using middleware on my route like below
Route::get('posts', 'PostControlle@index')->middleware('ability:super_admin,canViewPost,false');
but I am getting an InvalidArgumentException.

Daud khan
- 2,413
- 2
- 14
- 18
0
votes
0 answers
Laravel Redirects to blank page after login submit
I have created a management system on Laravel which works fine on my local machine but when I uploaded it on my GoDaddy server the first page which is login works fine but after hitting the login button to verify it redirects me to the blank page
…

Muhammad Umar Khan
- 11
- 9
0
votes
1 answer
Zizaco Entrust Laravel make a mysql request for each @permission in the page
I am using Laravel 5.2 with Zicaco Entrust for the management of permissions and roles.
I have a menu for the user and I use the laravel blade system in order to show the menu with @permission for each menu section because I am only showing the…

Richard
- 703
- 3
- 11
- 33
0
votes
0 answers
Unbale to establish communicaton with CANADA BORDER SERVICES AGENCY(CBSA) using entrust toolkit
We are trying to send and encrypted EDI(Electronic Data Interchange) String along with a digital signature in the form of SMIME to Canada Border Services Agency ,but getting Error everytime we try different approaches.
The request SMIME payload we…

user7786905
- 1
- 4
0
votes
1 answer
Entrust doesn't see permission
I have four permissions in my permissions table in DB:
In my blade template I check for those permissions via directives like so:
@permission('programs')
dd('code where permission HAS NOT a dot in the name')
@endpermission
…

Virtual Device
- 1,650
- 3
- 10
- 26
0
votes
1 answer
How do I fix sidebar that uses entrust
I am given the task to debug a system. I am not familiar with Entrust package.
Other pages that I go to using the sidebar works fine, but certain pages when I view them, the sidebar does not work (The dropdown disappears).
This is how the sidebar…

nazhannasir
- 15
- 8
0
votes
1 answer
Zizaco/Entrust multiple method filters
I need to give admin access to all methods in controller, but only to some for customer-admin.
I tried to go with this
public function __construct()
{
$this->middleware('auth');
$this->middleware('role:customer-admin')->only(['show',…

Edmund Sulzanok
- 1,883
- 3
- 20
- 39
0
votes
1 answer
Handle access dashboard with laravel and entrust
I tried using entrust package and works well.
I have different types of roles assign to different users.
The users are have roles access to dashboard to do according to their permission.
I need to make middleware on routes using entrust package to…

Amr Abdalrahman Ahmed
- 920
- 1
- 14
- 19
0
votes
3 answers
Laravel eloquent model relationship
My app builds on
Laravel: 5.6.35
PHP 7.2.4
Entrust: 1.9
My Role model
class Role extends EntrustRole
{
public function permissions()
{
return $this->belongsToMany(Permission::class);
}
public function users()
{
…

Prafulla Kumar Sahu
- 9,321
- 11
- 68
- 105
0
votes
1 answer
Laravel Entrust - add support for guest role
I am using Entrust middleware from here. Everything goes fine except when I want to expose a certain page to admin when logged in and to any user who is NOT logged in .
With the help from here , I added the following middleware, but when I hit the…

Istiaque Ahmed
- 6,072
- 24
- 75
- 141