jobyh/laravel-vue-make

This package is abandoned and no longer maintained. No replacement package was suggested.

Artisan command to generate Vue components

v1.1.0 2020-12-19 15:13 UTC

This package is auto-updated.

Last update: 2021-11-26 08:57:07 UTC


README

Build Status

This repo has been archived. Please use 👉 this package instead. 🙂

Artisan generator for Vue component files. Supports Laravel 8, 7 & 6.

Why?

I scaffold stuff up using Artisan a lot and having a command which all developers who work on a particular codebase have access to helps keep things consistent.

Quick start

% cd /path/to/laravel/project
% composer require --dev jobyh/laravel-vue-make

Customise Stubs

I use Tailwind for styles so the default stubs don't contain a <style> tag. You might though so...

Publishing stubs in Laravel is a great feature. Yes please.

% php artisan vendor:publish --tag vue-stub

Usage

Generate a Vue component file:

% php artisan make:vue MyComponent
# -> resources/js/components/MyComponent.vue

Generate under a subdirectory

% php artisan make:vue foo/bar/MyComponent
# -> resources/js/components/foo/bar/MyComponent.vue