Laravel 6 / 7 make auth

João Nascimento
1 min readAug 15, 2020

Why laravel make:auth no longer exist???

Start from begin, since version 6 a lot change.

Like so, now to create a new project we do via composer

# laravel new appName

# composer require laravel/ui

So starting from this change, we can see that the commands aren’t the same, if you need help you can do

php artisan ui -- help

But this changes aren’t bad because now you can simple type

php artisan ui vue

or

php artisan ui react

to create a simple project with vuejs, save a lot of time

Now the important

The ui:auth Command

php artisan ui:auth

this command will generate all the routes, a ‘HomeController’, a auth views and a app.blade.php file.

Other thing here is that the console command will confirm if overwriting auth files if for some reason you already type a auth command before.

If you need more information please see official Documentation.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response