PHP code example of beckenrode / vue-generators

1. Go to this page and download the library: Download beckenrode/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/ */

    

beckenrode / vue-generators example snippets


Beckenrode\VueGenerators\VueGeneratorsServiceProvider::class,



return [

    /*
    * Location of the stubs to use
    */
    //'component_stub' => __DIR__.'/component.stub',
    //'mixin_stub' => __DIR__.'/mixin.stub',

    /*
    * Location of where to generate the files
    */
    'components_path' => '/resources/assets/js/components/',
    'mixins_path'     => '/resources/assets/js/mixins/'

];

bash
php artisan vendor:publish
bash
php artisan vendor:publish --provider="Beckenrode\VueGenerators\VueGeneratorsServiceProvider"

php artisan make:vue-component MyNewComponent

php artisan make:vue-mixin MyNewMixin