Laravel 5.4 can't run "php artisan preset react" comand

Vardan picture Vardan · Jan 22, 2018 · Viewed 17.8k times · Source

Laravel 5.4 can't run php artisan preset react comand Getting "Command "preset" is not defined." responde.

Answer

Alexey Mezenin picture Alexey Mezenin · Jan 22, 2018

For Laravel 7+ projects:

composer require laravel/ui
php artisan ui react

https://laravel.com/docs/7.x/frontend#introduction

For Laravel 5.5+ projects:

php artisan preset react

https://medium.com/@taylorotwell/laravel-frontend-presets-eca312958def