In order to use the Auth::routes() method, please install the laravel/ui package

Updated at 04-Mar-2022, By samar

In order to use the Auth::routes() method, please install the laravel/ui package

Through many examples, we will learn how to resolve the "In order to use the Auth::routes() method, please install the laravel/ui package".

You can get the solution for error In order to use the Auth::routes() method, please install the laravel/ui package using composer require laravel/ui command and php artisan ui vue --auth.
  • Composer require laravel/ui

    composer require laravel/ui
    
  • Php artisan ui vue --auth

    php artisan ui vue --auth
    //This command will generate the auth routes and a VueJs starter template for your application.
    
  • Generate the auth routes, HomeController and auth views using php artisan ui:auth command

    php artisan ui:auth
    //The command will generate the auth routes, a HomeController, auth views, and a app.blade.php layout file
    

Back to code snippet queries related laravel