Skip to main content

Posts

Showing posts from October, 2017

Front-end Presets - A New Feature in Laravel 5.5 Plus Community Supported Preset Options

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 arti