Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

[PHP]Laravel6でmake:authするには

内容

Laravel6では、5系までで使えていたmake:authが使えない
実行すると以下のように「そんなコマンドはないよ」と言われてしまう...

kusumoto-t: sample$ 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

解決方法

以下2つのコマンドで解決する

composer require laravel/ui "^1.0" --dev
php artisan ui vue --auth

参考:https://readouble.com/laravel/6.0/ja/authentication.html

php artisan serveで立ち上げてみると...右上にLOGIN REGISTERが表示されます

laravel_top.png
kusumoto-t
人生いろいろ〜♪現場もいろいろ〜♪プログラミング言語だっていろいろ〜♪ 咲き乱れるの〜(炎上)
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away