[英]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. 嗨,我是laravel的新手,正在尝试在现有的laravel项目上安装Laravel护照。 I am trying to run this command
我正在尝试运行此命令
composer require Laravel/passport
When I run the command it shows nothing to install or update
. 当我运行命令时,它
nothing to install or update
显示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. 但是,我可以看到在我的作曲家中我有Laravel
version ~4.0
〜4.0,并且我正在使用PHP7.1。 I have also installed one of its dependency illuminator/encryption=5.4.36
. 我还安装了其依赖
illuminator/encryption=5.4.36
程序illuminator/encryption=5.4.36
。
Can somebody help me out? 有人可以帮我吗? How to install my Laravel passport?
如何安装我的Laravel护照?
I am running laravel 5.4.36 (it's locked) 我正在运行laravel 5.4.36(已锁定)
PS: Had to remove composer file content. PS:必须删除作曲家的文件内容。
You have already installed Laravel Passport. 您已经安装了Laravel Passport。 Your composer / console returns that message because its already downloaded.
您的作曲者/控制台会返回该消息,因为该消息已下载。
Your composer.json tells you that you downloaded version 4.0: 您的composer.json告诉您您下载了版本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. Taylow Otwell也提供了有关Laravel Passport的不错的教程。
https://laracasts.com/series/whats-new-in-laravel-5-3/episodes/13 https://laracasts.com/series/whats-new-in-laravel-5-3/episodes/13
To get started, install Passport via the Composer package manager: 首先,通过Composer软件包管理器安装Passport:
composer require laravel/passport
Next, register the Passport service provider in the providers array of your config/app.php configuration file: 接下来,在config / app.php配置文件的providers数组中注册Passport服务提供商:
Laravel\Passport\PassportServiceProvider::class,
then the command line again type: 然后在命令行中再次输入:
php artisan migrate
For more info look: https://laravel.com/docs/5.4/passport 有关更多信息,请访问: https : //laravel.com/docs/5.4/passport
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.