Forum

php artisan make:au...
 
Notifications
Clear all

php artisan make:auth not defined in Laravel 9

   RSS

0
Topic starter

When I am trying to run this command php artisan make:auth... The following error comes. Is there any way to run this command, or any alternative for this command, should I Install amy package for this command?

      Command "make:auth" is not defined.
    
      Did you mean one of these?
          make:cast
          make:channel
          make:command
          make:component
          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:scope
          make:seeder
          make:test

Laravel Framework 9.8.1
Topic Tags
2 Answers
0
Topic starter

After Installing Laravel 9 you need to install laravel/ui package in order to generate authentication in laravel 9.

composer require laravel/ui

And than choose one of these

php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth



0
Topic starter

php artisan ui:auth. it worked for me. you can see it below commands.


Command "make:auth" is not defined.  
Did you mean one of these?
make:cast
make:channel
make:command
make:component
make:controller
make:event
make:exception
make:factory
make:job</p>
make:listener</p>
make:mail</p>
make:middleware
make:migration
make:model
make:notification
make:observer
make:policy
make:provider
make:request
make:resource
make:rule
make:seeder
make:test
ui:auth

If you didn't get style in auth pages use below link in tha layouts>path file

link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
 
Share: