Laravel 5.6 User Roles & Permissions - unable to access roles or products page - no roles in multi select

Posted in CategoryLaravel
  • J
    Jam0r 6 months ago

    Hello

     

    I have followed your tutorial here: https://itsolutionstuff.com/post/laravel-56-user-roles-and-permissions-acl-using-spatie-tutorialexample.html

     

     

    All went well but when I go onto edit/create user there are no roles in the role multi-select dialogue.  In the permission SQL table I see role-list, role-create, role-edit etc but nothing in the roles or role_has_permissions table.  Have I missed something?

     

    Example here: 

    https://ibb.co/mowCS7

    http://ibb.co/cHOO0S

    http://ibb.co/kVRCS7

    http://ibb.co/fNoCun

    http://ibb.co/iMpwLS

     

    I had authentication implemented prior to following this tutorial.

     

    Thanks

     

    Jam0r

  • H
    Hardik Savani 6 months ago

    Can you try this on your user controller PLs ?

     

    dd($roles = Role::pluck('name','name')->all());

     

  • R
    Renato 4 months ago

    Estou sem permissao:(User have not permission for this page access)


    I did the same project, I downloaded the one of you, but I can not edit users nor register roles. What has to be done to have user as superuser?


    Because I do not have permission!

  • M
    Martin 4 months ago

    Hi Hardik,

    I have your latest code and i setup in my local pc.

    Everyting is working fine, user created and login success.

    One thing is not working is after login when i check the user role table and user permission table there are no record inserted in the table so when i can check the user permission that time access denied display means you have not right permission to acess this page

     

    Can you please help me on this?

     

    Thanks,

    Martin Steave

  • G
    Gari 2 weeks ago

    hello,

    Same problem here. I can't edit the current users role. Any help will do.

    Thanks.

  • F
    Faisal 2 weeks ago

    Hi good evening 

    i have a problem with add synamic field to form and remove. Any help will do 

    thank you

Please login or register to leave a response.

* You May Also Like Bellow Issue to check *