Laravel 5.4 can't run “php artisan preset react” comand

三世轮回 提交于 2019-12-23 13:08:50

问题


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.

  1. The React preset command can be initialized through Artisan:

    php artisan preset react

  2. 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

  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!