Php artisan preset command in Laravel
Laravel doesn’t state which JavaScript or CSS pre-processors you use, it provides a start using Bootstrap and Vue which is helpful for applications. Laravel provides a front-end presets/scaffolding . For removing it from your application you can use preset artisan command. When combined with none option it will remove Bootstrap and Vue scaffolding from your application. It will leave only an SASS file and some common JavaScript utility libraries. The artisan command is the following.
php artisan preset none
In Laravel 5.5 and above versions the artisan preset command is available. It allows you to replace the default tools. Following are the artisan preset command for React, Bootstrap and for removing both Vue.js and Bootstrap respectively.
php artisan preset react
php artisan preset bootstrap
php artisan preset none
In Laravel 7.x versions scaffolding API has changed, the command is shown below.
php artisan ui react
Comments
0 comments
Please Sign in or Create an account to Post Comments