rastik1584 / generator-vue
Generate vue in laravel
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.0.2
- laravel/framework: 9.*
README
This package adding artisan commands to list folder structure and create vue file or vue crud in specific folder path.
Installation:
composer require rastik1584/generator-vue
Publish the config file:
php artisan vendor:publish --provider="rastik1584\GeneratorVue\GeneratorVueServiceProvider"
Laravel version 9.*
Commands:
php artisan generator-vue:directory-list {--path}
Show directories from base path resources/js/*. Not showing files only directories.
Added two show method list and path. Show path add option --path .
php artisan generator-vue:make-vue <directory> <filename> {--d}
Create vue file from added directory path. Base path is resources/js .
When directory is not exists add option --d to creating directory.
php artisan generator-vue:make-vue-crud <directory> {--d}
Generate vue files with CRUD (Index,Create,Edit,Form) in directory path.
When directory is not exists add option --d to create directory.
Version 1.1:
Update config file to separate paths and templates, add crud vue filenames. Add new commands.
Added this new commands:
php artisan generator-vue:get-config-list {--all} {--template}
Return config settings. From base ( no options ) return only paths. Template option return only base template paths
All option return all settings in config file.
php artisan generator-vue:make-hook <name> {--path=} {--ts} {--d}
Generate hook file from resource path add /hooks folder and base creating .js hook. Optional --path generate exists or create new folder structure from hooks.
Option --d from creating new folders. --ts option generate TypeScript hook.
License: MIT