Home > PHP Framework > Laravel > Laravel 6 changes - make:auth removed

Laravel 6 changes - make:auth removed

藏色散人
Release: 2019-08-26 21:09:16
forward
6212 people have browsed it

In this article, we take a look at the login-related changes in Laravel6.

Before Laravel5.8 we could quickly generate login authentication templates through php artisan make:auth , but in Laravel6, this command has been removed and replaced by Moved to a separate expansion pack.

Installation

composer require laravel/ui
php artisan ui vue --auth
Copy after login

First we install laravel/ui, and then enter php artisan ui vue --auth .

Of course we can also use php artisan ui react --auth or php artisan ui bootstrap --auth to set the default file. The difference is simply whether the example JS uses VUE or REACT.

The template generated by the authentication is the same as before.

Conclusion

According to Taylor, new projects in Laravel6 will not include Vue or React code by default. But I feel that there is no particular benefit if these things are separated into a separate bag. Moreover, the built-in make:auth command has been removed, which is still a little painful. Of course, new features will be added to the laravel/ui package in the future, and my views may change by then.

I don’t know what your attitude is towards this change?

For more Laravel related technical articles, please visit the Laravel Framework Getting Started Tutorial column to learn!

The above is the detailed content of Laravel 6 changes - make:auth removed. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template