I use Windows 10, and I'm in the folder that Laragon saves its projects (C:\laragon\www). From the terminal I type this line to create a new project:
laravel new auth
But it returns me the text of the question title.
I ran a composer update , restarted Laragon, then restarted Windows, but it didn't work. Then I tried to create the project in the usual way...
composer create-project laravel/laravel –-prefer-dist NombreDeProyecto
It was created normally. Then I wanted to run this line to mount authentication...
php artisan make:auth
But he replied:
Command "make:auth" is not defined.
Did you mean one of these?
make:channel
make:command
make:controller
[...]
In any case, I haven't been able to move forward.
What I can do? Thank you!
First error.
When it tells you that Laravel was not recognized as an internal or external command it is because it does not exist in the system variables.
What you should do is enter the following route:
In this path is the executable of the Laravel installer, later you must go to:
In the system variables area look for the one called PATH and there:
SECOND MISTAKE
Laravel 6 has removed the command from the core
make:auth
, if you wish to continue using it; then you should do the following:Install the package separately with this command:
Now execute the command
php artisan
which returns the complete list of commands where you will see that there is a new one called:What does it say:
Once the previous command is executed, then you will have the creation of the traditional registration and login views available.
UPDATE 11/28/2019
From version 1 of the laravel installer; you can download a fresh copy of a Laravel project with basic authentication scaffolding like this:
2.3.X
What happens if I do not recognize that command?
Check the version of your Laravel installer with the following command:
If the result of the previous command gives you a version lower than the one mentioned; then update it like this:
References
ui:auth
laravel ui