问题
Laravel 5.4 can't run php artisan preset react
comand
Getting "Command "preset" is not defined." responde.
回答1:
The php artisan preset react
command is available since Laravel 5.5.
If you love React, you will love Laravel 5.5. Simply run the php artisan preset react command to swap out the Vue scaffolding with React scaffolding.
https://medium.com/@taylorotwell/laravel-frontend-presets-eca312958def
回答2:
Laravel 5.5 a new Artisan preset command allows you to replace default tools with other tools like React, Bootstrap, and even removing all of it.
The React preset command can be initialized through Artisan:
php artisan preset react
The Bootstrap preset is useful if you prefer not to use any JavaScript scaffolding at all, but still, want to keep the Bootstrap CSS.
php artisan preset bootstrap
The final preset option is “none” which will remove both Bootstrap and Vue.js:
php artisan preset none
来源:https://stackoverflow.com/questions/48381322/laravel-5-4-cant-run-php-artisan-preset-react-comand