Reputation: 60
I am trying to install Passport in Laravel. I follow exactly all the guides and I facing this problem
I already put in app.php the follow
I try to follow advice from here on similar problems but nothing resolving, I try composer dump-autoload. ecc. Any help please?
Upvotes: 1
Views: 778
Reputation: 309
There are dependencies that Laravel passport requires running the composer require Laravel/passport
will trigger the error you are facing.
Solution:
Try composer require Laravel/passport -w
to run the package with its required dependencies instead of uninstalling and re-installing the project.
Upvotes: 0
Reputation: 34708
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.
Upvotes: 1