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

davidsi02's avatar

php artisan preset don't work installing a template.



  Command "preset" is not defined.´´´


Laravel Version: 7.X
0 likes
3 replies
Nakov's avatar

@davidsi02 that was removed from the framework you need to run:

composer require laravel/ui

first and then as an example:

php artisan ui react	
2 likes
davidsi02's avatar

When I do php artisan ui argon it retrieves the following error:


 Invalid preset.

 at C:\xampp\htdocs\itstep\links\vendor\laravel\ui\src\UiCommand.php:41
   37|             return call_user_func(static::$macros[$this->argument('type')], $this);
   38|         }
   39|
   40|         if (! in_array($this->argument('type'), ['bootstrap', 'vue', 'react'])) {
 > 41|             throw new InvalidArgumentException('Invalid preset.');
   42|         }
   43|
   44|         $this->{$this->argument('type')}();
   45|

 1   C:\xampp\htdocs\itstep\links\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
     Laravel\Ui\UiCommand::handle()

 2   C:\xampp\htdocs\itstep\links\vendor\laravel\framework\src\Illuminate\Container\Util.php:37
     Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()´´´

Please or to participate in this conversation.