reactjslaravellaravel-5preset

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


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