我试着用laravel 8运行这个命令。*但它不起作用。
php artisan make:auth
我犯了个错误
Command "make:auth" is not defined
Did you mean one of these?
make:test
make:request
make:migration
make:seeder
make:middleware
make:controller
make:provider
make:policy
make:event
make:console
make:job
make:listener
make:model
make:command
我也试着解决
composer require laravel/ui
php artisan ui vue --dev
php artisan ui vue --auth
我犯了这个错误
Your requirements could not be resolved to an installable set of packages.
发布于 2021-07-05 06:10:25
所以我解决了这个问题
使用app/Provider/AppServiceProvider.php进行更改
添加
use Illuminate\Support\Facades\Schema;
.
.
.
.
.
.
public function boot()
{
Schema::defaultstringLength(191);
}
然后按照以下命令使用命令:
sudo apt-get install php-xml
然后
composer require laravel/ui
php artisan ui:auth
php artisan optimize
php artisan serve
它解决了我的问题我的截图
发布于 2021-07-05 06:09:36
首先运行此命令composer require laravel/ui
,然后运行此命令
php artisan ui vue --auth
请遵循这些拉拉8指南,你将得到你的解决方案。
https://laravel.com/docs/8.x/authentication
这也是如何在laravel 8中使用auth的教程。
https://laravelarticle.com/laravel-8-authentication-tutorial
阿拉维喷射机
https://dev.to/kingsconsult/laravel-8-auth-registration-and-login-32jl
发布于 2021-07-05 06:19:23
laravel 8 you can write this command.its work for me.
php artisan ui:auth
=>php artisan make:auth ( which works for Laravel 5.8 and older versions )
https://stackoverflow.com/questions/68251337
复制相似问题