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-04-12 04:54:01 UTC


README

68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230567565253230436f6d6d616e64732e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d417269656c4d656a69614465762532466c61726176656c2d6d616b652d7675652d636f6d6d616e6473267061747465726e3d776967676c65267374796c653d7374796c655f31266465736372697074696f6e3d616464732b6172746973616e2b636f6d6d616e64732b746f2b6372656174652b5675654a532b2532362b496e65727469614a532b636f6d706f6e656e7473266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667

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.