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
Requires
- php: ^7.2|^8.0
- illuminate/console: ^6.0|^7.0|^8.0
- illuminate/filesystem: ^6.0|^7.0|^8.0
- illuminate/support: ^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^3.8|^4.0|^5.0
- phpunit/phpunit: ^8.0|^9.0
This package is auto-updated.
Last update: 2021-11-26 08:57:07 UTC
README
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