verzatiletom / vcomponent
A simple vue component generator using make:v-component artisan command in Laravel.
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:laravel
Requires
- php: ^7.0
- illuminate/support: ^5.1
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2024-06-29 12:18:38 UTC
README
Laravel 5+ Vue Component Generator
![StyleCI](https://camo.githubusercontent.com/09e9ff2e9ad7e62f404d42f8c965299962aed2d4ad3f9fe6e6893cbe7560f71b/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132363236353430332f736869656c643f6272616e63683d6d6173746572)
A simple vue component generator using make:v-component
artisan command in Laravel.
Installation
composer require verzatiletom/vcomponent
For Laravel 5.4 and below, paste this to your config/app.php
inside your providers
array.
Verzatiletom\Vcomponent\VcomponentServiceProvider::class
Usage
php artisan make:v-component {name} {--dir}
Example
php artisan make:v-component DemoComponent
It will generate a DemoComponent.vue
file in the resources/assets/js
directory by default.
Specify the location
php artisan make:v-component DemoComponent --dir js/components
By specifying the --dir
option, it will generate your .vue
file on the your specified directory. In this example, it will generate your vue component in assets/js/components
directory.