这是我做的第一件事
php artisan make:auth
结果:
Command "make:auth" is not defined. Did you mean one of these? make:channel make:command make:controller make:event make:exception make:factory make:job make:listener make:mail make:middleware make:migration make:model make:notification make:observer make:policy make:provider make:request make:resource make:rule make:seeder make:test
第二个:
php artisan ui vue --auth php artisan ui react --auth
我已经尝试过了,这是结果
The "http://repo.packagist.org/p/provider-2015%24e84cdb7b9b7175f18a814c1783741a3ba6b021c4a78701285cc5639d0d1ee4e6.json"
文件无法下载:无法打开流:HTTP请求 失败了!
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
我该怎么办? -谢谢
答案 0 :(得分:2)
我该怎么办?
从Laravel 6开始,您需要先安装单独的UI软件包才能生成Auth脚手架:
composer require laravel/ui --dev
那么您就可以运行以下其中一项:
// Generate basic scaffolding...
php artisan ui bootstrap
php artisan ui vue
php artisan ui react
// Generate login / registration scaffolding...
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth
答案 1 :(得分:0)
是的,在Laravel 6身份验证支架中,您可以从作曲家那里安装它
composer require laravel/ui