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
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 runphp 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
Destroy or Unset Session When User Close the Browser Without Clicking on Logout
Mysql_Real_Escape_String VS Addslashes
How to Sort an Array of Utf-8 Strings
Instantiate a Class with or Without Parentheses
Can You Add an If Statement in Order By
How to Read Large Worksheets from Large Excel Files (27Mb+) with PHPexcel
$_Server["Remote_Addr"] Gives Server Ip Rather Than Visitor Ip
Codeigniter - How to Catch Db Errors
Cakephp 2.0 - How to Make Custom Error Pages
Laravel Model with Two Primary Keys Update
Int((0.1+0.7)*10) = 7 in Several Languages. How to Prevent This
Can't Install PHP Package on Centos