Curious Developer
Curious Developer

Reputation: 725

Laravel Passport not able to install on laravel 5.4.*

Hi I am new to laravel and trying to install the Laravel passport on an existing laravel project. I am trying to run this command

composer require Laravel/passport

When I run the command it shows nothing to install or update. But, I can see that in my composer I have Laravel version ~4.0 and I am using PHP7.1. I have also installed one of its dependency illuminator/encryption=5.4.36.

Can somebody help me out? How to install my Laravel passport?

I am running laravel 5.4.36 (it's locked)

PS: Had to remove composer file content.

Upvotes: 0

Views: 757

Answers (2)

Yosved Villar
Yosved Villar

Reputation: 193

To get started, install Passport via the Composer package manager:

composer require laravel/passport

Next, register the Passport service provider in the providers array of your config/app.php configuration file:

Laravel\Passport\PassportServiceProvider::class,

then the command line again type:

php artisan migrate

For more info look: https://laravel.com/docs/5.4/passport

Upvotes: 0

utdev
utdev

Reputation: 4102

You have already installed Laravel Passport. Your composer / console returns that message because its already downloaded.

Your composer.json tells you that you downloaded version 4.0:

    "laravel/passport": "~4.0",

Now you just have to move on I recommened going through the documentation.

There is also a nice tutorial from Taylow Otwell regarding Laravel Passport.

https://laracasts.com/series/whats-new-in-laravel-5-3/episodes/13

Upvotes: 3

Related Questions