laravel通过artisan执行passport出现There are no commands defined in the "passport" namespace.
Song •
6343 次浏览 •
3个评论 •
2018年07月31日
在laravel:passport使用中,执行passport出现错误,有如下两种情况:
1、执行命令:php artisan passport:install
> php artisan migrate
Migration table created successfully.
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table
d:\web\laravel-passport>php artisan passport:install
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "passport" namespace.
解决,主要是没有在config/app.php配置文件中添加
Laravel\Passport\PassportServiceProvider::class,
2、使用Artisan执行出现报错
Artisan::call('passport:install');
dd("213");
发现问题是vendor/laravel/passport文件有问题,所以重新安装解决问题
-
laravel如何优化更新最新的一条数据的SQL 2018-07-31 -
Laravel5.*实现文件本地上传方法 2018-07-26 -
Mac 安装使用supervisor进行进程守护 2018-07-25 -
Laravel里firstOrCreate、firstOrNew、updateOrCreate 方法使用 2018-07-23 -
使用nethogs查看进程使用的网络情况 2018-07-20

更多相关好文