Download the PHP package suomato/laravel-vue-component-generator without Composer
On this page you can find all versions of the php package suomato/laravel-vue-component-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download suomato/laravel-vue-component-generator
More information about suomato/laravel-vue-component-generator
Files in suomato/laravel-vue-component-generator
Package laravel-vue-component-generator
Short Description Generates a new Vue component with boilerplate in Laravel project
License MIT
Informations about the package laravel-vue-component-generator
Laravel Vue Component Generator
Introduction
If you love to use Artisan and Vue is the frontend framework of your choice, this package is for you! The
laravel-vue-component-generator
package gives you a new Artisan command which lets you generate the Vue component very fast.
Artisan Command
During the command execution you have to choose the template engine
(HTML / pug)
and the CSS Pre-prosessor(CSS / LESS / Sass / Scss / Stylus)
. The Vue component will be generated to/resources/assets/js/components/
with boilerplate based on your choice.
Code Example
Example.vue
is created to/resources/assets/js/components/
Here is the component boilerplate:
Installation
After that, add the ServiceProvider to the providers array in
config/app.php
Enjoy using the new Artisan command.
Config
If you don't want to choose the same template engine and CSS Pre-processor over and over again or if you're not happy with the default boilerplate, feel free to edit config or views. To publish the config and views use:
- Config is located
/config/vue-component-generator.php
- Views is located
/resources/views/vendor/laravel-vue-component-generator