arielmejiadev/laravel-vue-commands

This package adds artisan commands to create VueJS components and InertiaJS components.

1.0.1 2021-07-11 23:01 UTC

This package is auto-updated.

Last update: 2024-11-12 06:04:16 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

This package adds artisan commands to create VueJS components and InertiaJS components.

Installation

You can install the package via composer:

composer require arielmejiadev/laravel-vue-commands --dev

Publish Commands & Stubs

php artisan vue-commands:install

Publish config file

By default, Vue components are going to be stored in resources/js/Components & Inertia components would be stored in resources/js/Pages. This behavior could be customized by changing the values in the config file.

php artisan vendor:publish --tag=vue-commands-config

Usage

Create a VueJS components:

php artisan make:vue Badge

You can see the component from resources/js/Badge.vue

Create an InertiaJS components:

php artisan make:inertia Users/Index

You can see the component from resources/js/Pages/Users/Index.vue

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email arielmejiadev@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.