Spatie ACL Error: "Trait 'Laravel\Passport\HasApiTokens' not found"

Posted in CategoryLaravel
  • A
    Amit Rawat 4 months ago

    Hi Guys,

                Thanks for a great tutorial for implementing ACL in laravel 5.6. I have followed the steps given in the tutorial but It throws an error when I try to register an user. The error is as follows:

    "Trait 'Laravel\Passport\HasApiTokens' not found"

    I have been struggling for past two days to fix this issue. Also, there are no result regarding this issue when I googled it. Here is the link for the tutorial https://itsolutionstuff.com/post/laravel-56-user-roles-and-permissions-acl-using-spatie-tutorialexample.html. Please provide your suggestions and fixes. It would be a greate help. Thanks is advance.

  • C
    Carsten Nelke 4 months ago

    You should install Passport. Watch here:

    https://laravel.com/docs/5.6/passport

     

    It´s quite simple. I had the same problem and i solved it this way. 

Please login or register to leave a response.

* You May Also Like Bellow Issue to check *