Laravel 6 remove PHP artisan make auth command, This tutorial shows you which command used instead of make: auth. Generally, PHP makes: auth command generated default views like login, registration, forget the password, reset password and verify email.
You may have noticed, after installing a fresh Laravel 6 application that the make: auth command no longer exists. So let’s see how you can easily generating auth scaffolding in Laravel 6.
First of all, you must know about Laravel UI.
Laravel UI is a new first-party package that extracts the UI portion of a Laravel project into a separate laravel/ui package. The separate package enables the Laravel team to iterate on the UI package separately from the main Laravel codebase.
You can install the
laravel/ui package via composer:
laravel new my-app composer require laravel/ui
Once you install the laravel / UI package, you have some commands available to generate the UI code, including authorization.
php artisan ui --help
The laravel/ui package provides a command for generating views for VUE, React and Boostrap.
Here are a few examples:
php artisan ui vue php artisan ui react php artisan ui boostrap
If you want to generate the auth scaffolding at the same time:
php artisan ui vue --auth php artisan ui react --auth php artisan ui boostrap --auth
The ui:auth Command
In addition to the new UI command, the larva / UI package comes with another command to generate scaffolding:
php artisan ui:auth
If you run the ui: auth command, it will generate the organic root, HomeController, oral view, and app.blade.php layout files.
If you want to generate only views use the below command:
php artisan ui:auth --views
Know More – Make Auth
To learn more about the authentication and new UI package, check out the official Authentication Documentation.