arielmejiadev / laravel-vue-commands
此包添加了 artisan 命令,用于创建 VueJS 组件和 InertiaJS 组件。
1.0.1
2021-07-11 23:01 UTC
Requires
- php: ^7.4|^8.0
- illuminate/support: ^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-09-12 05:38:49 UTC
README
此包添加了 artisan 命令,用于创建 VueJS 组件和 InertiaJS 组件。
安装
您可以通过 composer 安装此包
composer require arielmejiadev/laravel-vue-commands --dev
发布命令和模板
php artisan vue-commands:install
发布配置文件
默认情况下,Vue 组件将存储在 resources/js/Components
中,而 Inertia 组件将存储在 resources/js/Pages
中。可以通过修改配置文件中的值来自定义此行为。
php artisan vendor:publish --tag=vue-commands-config
使用方法
创建 VueJS 组件
php artisan make:vue Badge
您可以在 resources/js/Badge.vue
中查看组件
创建 InertiaJS 组件
php artisan make:inertia Users/Index
您可以在 resources/js/Pages/Users/Index.vue
中查看组件
测试
composer test
更新日志
有关最近更改的更多信息,请参阅 更新日志。
贡献
有关详细信息,请参阅 贡献指南。
安全
如果您发现任何与安全相关的问题,请通过电子邮件 arielmejiadev@gmail.com 而不是使用问题跟踪器来报告。
致谢
许可协议
MIT 许可协议 (MIT)。有关更多信息,请参阅 许可文件。
Laravel 包模板
此包是使用 Laravel 包模板 生成的。