Search code examples
laravellaravel-passport

How to install Laravel Passport with no error that is the following one


I am trying to install Passport in Laravel. I follow exactly all the guides and I facing this problem enter image description here

I already put in app.php the follow enter image description here

I try to follow advice from here on similar problems but nothing resolving, I try composer dump-autoload. ecc. Any help please?


Solution

  • Run composer dump-autoload
    Then run php artisan serve

    composer dump-autoload won’t download a thing. It just regenerates the list of all classes that need to be included in the project (autoload_classmap.php). Ideal for when you have a new class inside your project.