Laravel 5.4 comes with Bootstrap and Vue.js including Example.vue component for your front-end scaffolding.
Depending upon what we are developing, we might just need Bootstrap only but not Vue.js and vice versa or nothing at all.
Laravel 5.5 comes with new artisan preset command to switch front-end scaffolding presets easily. Now there is React.js scaffolding included for React lovers.
Bootstrap is a CSS framework while Vue.js is JavaScript framework. So artisan preset allows us to switch CSS framework or JavaScript framework separately.
NOTE: This scaffolding is intended to be used on fresh install of Laravel before anything.
Lets say we want React.js instead of Vue.js, all we have to do is php artisan preset react.
This will neatly switch JavaScript framework from Vue.js to React.js. It also replaces the Example.vue with Example.js React component.
If we are working only with Bootstrap but don't want any JavaScript framework scaffolding, we can use php artisan preset bootstrap. This will remove Vue scaffolding and we are left with only bootstrap.
If we don't want any preset that comes with Laravel 5.5, we can use php artisan preset none to remove all front-end scaffolding presets.
Well... what about other framworks? Supposing I want to use Zurb Foundation or Bulma or uikit instead of Bootstrap, how do we do that?
You are in luck!
Luckily Laravel presets can be extended so that community can develop the preset of their choice.
Currently few presets have been available for other CSS frameworks that are not included in Laravel 5.5.
Checkout these other presets if you prefer to use Zurb Foundation, Bulma or uikit.
https://packagist.org/packages/laravel-frontend-presets/
While for default Bootstrap preset, you still have to use php artisan make:auth to create Bootstrap Auth views, these community presets have gone one step further allowing you to scaffold new preset as well as create Auth views in one command.
For example: php artisan preset foundation-auth
This removes bootstrap and uses Zurb Foundation scaffolding as well as create Auth views for user login, registration etc., while leaving JavaScript framework intact.
If you are Zurb Foundation lover, you don't need to do all by yourself in my last tutorial. This preset will even save you more time.
If you like to contribute for other presets, you can definitely join the Laravel Frontend Presets Organization.
Enjoy your new found presets!
Depending upon what we are developing, we might just need Bootstrap only but not Vue.js and vice versa or nothing at all.
Laravel 5.5 comes with new artisan preset command to switch front-end scaffolding presets easily. Now there is React.js scaffolding included for React lovers.
Bootstrap is a CSS framework while Vue.js is JavaScript framework. So artisan preset allows us to switch CSS framework or JavaScript framework separately.
NOTE: This scaffolding is intended to be used on fresh install of Laravel before anything.
Lets say we want React.js instead of Vue.js, all we have to do is php artisan preset react.
This will neatly switch JavaScript framework from Vue.js to React.js. It also replaces the Example.vue with Example.js React component.
If we are working only with Bootstrap but don't want any JavaScript framework scaffolding, we can use php artisan preset bootstrap. This will remove Vue scaffolding and we are left with only bootstrap.
If we don't want any preset that comes with Laravel 5.5, we can use php artisan preset none to remove all front-end scaffolding presets.
Well... what about other framworks? Supposing I want to use Zurb Foundation or Bulma or uikit instead of Bootstrap, how do we do that?
You are in luck!
Luckily Laravel presets can be extended so that community can develop the preset of their choice.
Currently few presets have been available for other CSS frameworks that are not included in Laravel 5.5.
Checkout these other presets if you prefer to use Zurb Foundation, Bulma or uikit.
https://packagist.org/packages/laravel-frontend-presets/
While for default Bootstrap preset, you still have to use php artisan make:auth to create Bootstrap Auth views, these community presets have gone one step further allowing you to scaffold new preset as well as create Auth views in one command.
For example: php artisan preset foundation-auth
This removes bootstrap and uses Zurb Foundation scaffolding as well as create Auth views for user login, registration etc., while leaving JavaScript framework intact.
If you are Zurb Foundation lover, you don't need to do all by yourself in my last tutorial. This preset will even save you more time.
If you like to contribute for other presets, you can definitely join the Laravel Frontend Presets Organization.
Enjoy your new found presets!
Thanks For Your valuable posting, it was very informative...
ReplyDeleteLaravel Development Company
I am very grateful to read your blog.I hope you would provide the great services in the field of website design and development
ReplyDeleteFront End Development
Hi, Our laravel Development Company provide fluency in delivering simple code for a variety of bundles to help create robust and attractive websites for diverse verticals of industry and domains. We help businesses to achieve their underlying goals using leading solutions from the Laravel framework. Contact@ExpressTechSoftwares.Com or +91-9806724185
ReplyDeleteExpressTech Software Solutions is a Laravel Development Company, we are having a group of master Dedicated Laravel Developers with great Laravel Experience. Contact us to find more about laravel software. Contact@ExpressTechSoftwares.Com or +91-9806724185
ReplyDeleteThank you for sharing this informative post on laravel. I am new to laravel and this post will really help me.
ReplyDeleteLaravel Web Development Services
HDPE Pipe Fittings - We believe in using only standard quality raw materials to provide perfect product for industry specific requirements. Our team of experts and designers ensure latest designs, perfect shape, long lasting durability, easy installation and perfect finish in the product.
ReplyDelete