php artisan make:auth not defined in Laravel 8

Issue

I’m trying to run this command in Laravel 8.57.0 but it’s not working:

PHP artisan make:auth

and the error is :

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

I also tried

composer require laravel/ui
php artisan ui vue --auth
php artisan migrate

but still have the same error. So, I guess that either I am using the wrong command or I am trying to do something that can not be done.
Maybe most likely experienced people will see right away what is wrong.

Solution

What are you trying to do exactly? Create the authentication scaffolding from the laravel/ui package?

If so, then these two commands should be enough:

composer require laravel/ui
php artisan ui vue --auth

You can read further about it here.

Answered By – Cosmin

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published