| Package Data | |
|---|---|
| Maintainer Username: | suomato |
| Maintainer Contact: | toni.suomalainen@gmail.com (Toni Suomalainen) |
| Package Create Date: | 2017-07-24 |
| Package Last Update: | 2017-07-27 |
| Home Page: | https://packagist.org/packages/suomato/laravel-vue-component-generator |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-04 03:00:51 |
| Package Statistics | |
|---|---|
| Total Downloads: | 88 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 3 |
| Total Watchers: | 1 |
| Total Forks: | 2 |
| Total Open Issues: | 0 |
If you love to use Artisan and Vue is the frontend framework of your choice, this package is for you! The
laravel-vue-component-generatorpackage gives you a new Artisan command which lets you generate the Vue component very fast.
php aritsan make:vue-component {name}
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.
Example.vueis created to/resources/assets/js/components/
Here is the component boilerplate:
composer require suomato/laravel-vue-component-generator
After that, add the ServiceProvider to the providers array in
config/app.php
Suomato\VueComponentGenerator\VueComponentGeneratorServiceProvider::class,
Enjoy using the new Artisan command.
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:
php artisan vendor:publish --provider="Suomato\VueComponentGenerator\VueComponentGeneratorServiceProvider"
/config/vue-component-generator.php
/resources/views/vendor/laravel-vue-component-generator