This repo has been archived. Please use 👉 this package instead. 🙂
Artisan generator for Vue component files. Supports Laravel 8, 7 & 6.
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.
% cd /path/to/laravel/project
% composer require --dev jobyh/laravel-vue-make
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
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