mysql – Laravel 5.4 – 安装Passport
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了mysql – Laravel 5.4 – 安装Passport,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1559字,纯文字阅读大概需要3分钟。
内容图文
![mysql – Laravel 5.4 – 安装Passport](/upload/InfoBanner/zyjiaocheng/904/bb5c53bd5f0342879da3e5176da07269.jpg)
我正试图在Laravel文档的帮助下在我的Laravel 5.4项目上安装护照.但是当我在这个阶段时:
php工匠护照:安装
我有这个错误:
[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'lpo.oauth_clients' doesn't exist (SQL: insert into `oa
uth_clients` (`user_id`, `name`, `secret`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `upd
ated_at`, `created_at`) values (, Laravel Personal Access Client, ruEzLmQYSK5RhfzSximBKoupaXaMcRSR4CvXET0o, http://
localhost, 1, 0, 0, 2017-07-06 08:26:25, 2017-07-06 08:26:25))
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'lpo.oauth_clients' doesn't exist
如果成功,我应该有这样的东西:
Encryption keys generated successfully.
Personal access client created successfully.
Client ID: 1
Client Secret: OUA4IhQj1t3kDRuWZ6N7DQb9h1N3ccXpQw9HS2iz
Password grant client created successfully.
Client ID: 2
Client Secret: oGhkm0EPSjqxJBMkaWNZ6lIuuZoby4ev787yW6cO
之前我做过php artisan迁移,我有2个新表:用户和迁移.
谢谢你的帮助
解决方法:
您很可能跳过了以下一个或两个步骤:
Next, register the Passport service provider in the providers array of your config/app.php configuration file:
Laravel\Passport\PassportServiceProvider::class,
The Passport service provider registers its own database migration directory with the framework, so you should migrate your database after registering the provider. The Passport migrations will create the tables your application needs to store clients and access tokens:
php artisan migrate
只有在那之后你才能跑
php artisan passport:install
内容总结
以上是互联网集市为您收集整理的mysql – Laravel 5.4 – 安装Passport全部内容,希望文章能够帮你解决mysql – Laravel 5.4 – 安装Passport所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。