laravel通过artisan执行passport出现There are no commands defi
发布时间:2020-12-14 19:58:02 所属栏目:大数据 来源:网络整理
导读:在laravel:passport使用中,执行passport出现错误,有如下两种情况: 1、执行命令:php artisan passport:install phpartisanmigrateMigrationtablecreatedsuccessfully.Migrated:2014_10_12_000000_create_users_tableMigrated:2014_10_12_100000_create_pa
在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:weblaravel-passport>php artisan passport:install [SymfonyComponentConsoleExceptionCommandNotFoundException] There are no commands defined in the "passport" namespace. 解决,主要是没有在config/app.php配置文件中添加 LaravelPassportPassportServiceProvider::class, 2、使用Artisan执行出现报错Artisan::call('passport:install');dd("213"); 发现问题是vendor/laravel/passport文件有问题,所以重新安装解决问题。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |