Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davy_yg's avatar
Level 27

make auth

Hello,

I wonder why:

php artisan make:auth 

does not work? (This is from the tutorial, I check the doc in Laravel 5.7 exist)

This is also does not work

php artisan ui vue --auth

I am using Laravel 6.0 and this command should exists.

D:\xampp72\htdocs\socialite>php artisan ui vue --auth

Command "ui" is not defined.

I just installed a new laravel and it should be 6.0 I believe, how to check the laravel version?

composer.json

 "require": {
    "php": "^7.2",
    "fideloper/proxy": "^4.0",
    "laravel/framework": "^6.0",
    "laravel/tinker": "^1.0"
},

ref: https://laravel.com/docs/6.x/authentication

0 likes
8 replies
jlrdw's avatar

Did you run

composer require laravel/ui --dev
Szach's avatar

To find version run php artisan --version

uksarkar's avatar

First, you have to install Laravel UI package,

composer require laravel/ui --dev

and after that you can run

php artisan ui vue --auth
1 like
UdhavSarvaiya's avatar

Laravel 6.0 has removed this command: php artisan make:auth

Update for Laravel 6: The command to implement Auth is as follows:

composer require laravel/ui 
php artisan ui vue --auth

This command will install a layout view, registration and login views, as well as routes for all authentication end-points.

the Laravel version installed can be checked in the command line using the following command :

php artisan --version
siangboon's avatar

I think I know why you got so many questions already. I believe you read thing too fast and never reread again.

filipdak's avatar

I know it's old but maybe it will help someone.

In laravel 6 you need to use "composer require laravel/ui 1", becouse now it 2, and i think it works only with laravel 6.18 and more.

David Orizu's avatar

Hello I'm a laravel beginner when I tried

composer require laravel/ui

It showed

PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.

And I've tried to tackled the issue but no solution any help please ?

Tray2's avatar

Open a new thread and we should be able to help you.

However the memory issue is usually solved by running

composer self-update

Please or to participate in this conversation.