PHP code example of zachleigh / laravel-vue-generators

1. Go to this page and download the library: Download zachleigh/laravel-vue-generators library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zachleigh / laravel-vue-generators example snippets


'paths' => [
    'components' => 'path/to/components',
    'mixins'     => 'path/to/mixins',
]

php artisan vendor:publish --provider="VueGenerators\ServiceProvider"

php artisan vueg:component MyComponent

php artisan vueg:component MyComponent --empty

php artisan vueg:component MyComponent --path=assets/js/custom/folder

php artisan vueg:mixin MyMixin

php artisan vueg:mixin MyMixin --empty

php artisan vueg:mixin MyMixin --path=assets/js/custom/folder