29
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

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

Last updated at Posted at 2019-11-02

内容

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
29
25
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
29
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?