在laravel:passport使用中,执行passport出现错误,有如下两种情况:
1、执行命令:PHP artisan passport:install
> PHP artisan migrate Migration table created successfully.Migrated: 2014_10_12_000000_create_users_tableMigrated: 2014_10_12_100000_create_password_resets_tabled:\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");原文链接:https://www.f2er.com/laravel/477949.html