Command 'ui' is not defined in laravel 6.0

user12033292 picture user12033292 · Sep 9, 2019 · Viewed 21.3k times · Source

I start a new project in laravel but my composer installed a fresh version of laravel 6.0.1.

Php artisan make:auth command can't work.

I try many times but error can't remove

composer require laravel/ui

installed but when I use the second command:

php artisan ui vue --auth

then system show me this message:

Command "ui" is not defined.
Using version ^1.0 for laravel/ui
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129

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

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

Answer

Curious K picture Curious K · Sep 26, 2019

you can try this:

 C:\Whatever\Your_project_name>composer require laravel/ui

and

 C:\Whatever\Your_project_name>php artisan ui vue --auth

Just this two inside your project folder.I am using vue but you can try other ones too.