Artisan command “make:auth” is not defined in Laravel 6

后端 未结 9 1239
长发绾君心
长发绾君心 2020-12-01 12:37

I have a problem when creating login/auth in Laravel 6. I typed \"make: auth\" in the terminal and I get an error \"Command\" make: auth \"appears not defined.\" Is there a

9条回答
  •  时光说笑
    2020-12-01 13:06

    if you are using laravel 6, then try this command because with this command 'composer require laravel/ui' you will get only for Laravel 7.0 version and up,

            composer require laravel/ui "^1.0" --dev
    

    After Install the laravel/ui using via Composer run below command for auth scaffolding package,If Using vue then use below one,

            php artisan ui vue --auth 
    

    If using bootstrap then use below one,

            php artisan ui bootstrap --auth
    

    in a fresh Laravel application or with use of the documentation.

提交回复
热议问题