Adam
Adam

Reputation: 60

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?

Upvotes: 1

Views: 778

Answers (2)

Matthew
Matthew

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

STA
STA

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

Related Questions