Friday, February 25, 2022

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

Issue

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


Solution

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



Answered By - Alexey Mezenin

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.