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

Laravel 6 changes - make:auth removed

藏色散人
藏色散人forward
2019-08-24 14:21:096134browse

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

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!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete