Laravel UI Scaffolding Tutorial: make:auth removed in Laravel 6/7

Laravel UI Scaffolding Tutorial: make:auth removed in Laravel 6/7

In this post we will give you information about Laravel UI Scaffolding Tutorial: make:auth removed in Laravel 6/7. Hear we will give you detail about Laravel UI Scaffolding Tutorial: make:auth removed in Laravel 6/7And how to use it also give you demo for it if it is necessary.

If you have already tried Laravel 6/7 and particularly the auth scaffolding you will find out that the php artisan make:auth command doesn’t work anymore. This is simply because it’s now removed in Laravel 6 and the UI scaffolding is moved to a separate package called laravel/ui.

The laravel/ui package provides the login and registration scaffolding with React, Vue, jQuery and Bootstrap layouts.

What is Laravel/UI

Laravel UI is an official package that contains the extracted UI parts from a Laravel project.

How to Install laravel/ui

Before you can add the UI scaffoldings in your Laravel 6 via the artisan command, you first need to install the laravel/ui package via composer:

$ laravel new laravel-project$ composer require laravel/ui

Now, you’ll have many commands at your disposal that you can use to scaffold UI parts such as the authentication views.

The UI package provides the following commands:

$ php artisan ui --helpDescription:  Swap the front-end scaffolding for the applicationUsage:  ui [options] [--] <type>Arguments:  type                   The preset type(bootstrap, vue, react)Options:      --auth             Install authentication UI scaffolding      --option[=OPTION]  Pass an option to the preset command(multiple values allowed)  -h, --help             Display this help message  -q, --quiet            Do not output any message  -V, --version          Display this application version      --ansi             Force ANSI output      --no-ansi          Disable ANSI output  -n, --no-interaction   Do not ask any interactive question      --env[=ENV]        The environment the command should run under  -v|vv|vvv, --verbose   Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

This is how you generate the auth scaffolding based on Vue.js or React:

$ php artisan ui vue --auth$ php artisan ui react --auth

What about the ui:auth command?

The new laravel/ui package provides another ui:auth command that can also be used for scaffolding the auth views.

In your terminal, simply type:bash$ php artisan ui:auth

This command will generate the authentication routes and views along with a home controller and the base layout.

If you want to generate the views alone, type the following command instead:

$ php artisan ui:auth --views


We have seen how to use the laravel/ui package to scaffold the auth views based on Vue, React or Bootstrap in Laravel 6 instead of the removed php artisan make:auth command.

You can find more details about the laravel/ui package from the official docs.

Hope this code and post will helped you for implement Laravel UI Scaffolding Tutorial: make:auth removed in Laravel 6/7. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US