PHP Artisan Make:Auth Command Is Not Defined

Php artisan make:auth command is not defined

For Laravel >=6

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

Reference : Laravel Documentation for authentication

it looks you are not using Laravel 5.2, these are the available make commands in L5.2 and you are missing more than just the make:auth command

    make:auth           Scaffold basic login and registration views and routes
make:console Create a new Artisan command
make:controller Create a new controller class
make:entity Create a new entity.
make:event Create a new event class
make:job Create a new job class
make:listener Create a new event listener class
make:middleware Create a new middleware class
make:migration Create a new migration file
make:model Create a new Eloquent model class
make:policy Create a new policy class
make:presenter Create a new presenter.
make:provider Create a new service provider class
make:repository Create a new repository.
make:request Create a new form request class
make:seeder Create a new seeder class
make:test Create a new test class
make:transformer Create a new transformer.

Be sure you have this dependency in your composer.json file

    "laravel/framework": "5.2.*",

Then run

    composer update

Php artisan make:auth command is not defined in Laravel 8 on ubuntu system

So I solve this issue

changes with app/Providers/AppServiceProvider.php

add

use Illuminate\Support\Facades\Schema;
.
.
.
.
.
.
public function boot()
{
Schema::defaultstringLength(191);
}

then using command as follows:

sudo apt-get install php-xml

then

composer require laravel/ui

php artisan ui:auth

php artisan optimize

php artisan serve

and It resolve my issue
my screenshot Sample Image

php artisan make:auth not defined in Laravel 8

What are you trying to do exactly? Create the authentication scaffolding from the laravel/ui package?

If so, then these two commands should be enough:

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

You can read further about it here.

Artisan command make:auth is not defined in Laravel 6

Looks like L6 moves the Auth scaffolding into a separate package.

https://laravel.com/docs/6.0/authentication

Want to get started fast? Install the laravel/ui Composer package and run php artisan ui vue --auth in a fresh Laravel application.

Php artisan make:auth command is not defined

For Laravel >=6

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

Reference : Laravel Documentation for authentication

it looks you are not using Laravel 5.2, these are the available make commands in L5.2 and you are missing more than just the make:auth command

    make:auth           Scaffold basic login and registration views and routes
make:console Create a new Artisan command
make:controller Create a new controller class
make:entity Create a new entity.
make:event Create a new event class
make:job Create a new job class
make:listener Create a new event listener class
make:middleware Create a new middleware class
make:migration Create a new migration file
make:model Create a new Eloquent model class
make:policy Create a new policy class
make:presenter Create a new presenter.
make:provider Create a new service provider class
make:repository Create a new repository.
make:request Create a new form request class
make:seeder Create a new seeder class
make:test Create a new test class
make:transformer Create a new transformer.

Be sure you have this dependency in your composer.json file

    "laravel/framework": "5.2.*",

Then run

    composer update


Related Topics



Leave a reply



Submit