PHP code example of teacoders / module-generator

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

    

teacoders / module-generator example snippets

bash
php artisan vendor:publish --provider="TeaCoders\ModuleGenerator\ModuleServiceProvider"

php artisan make:view <view name>

php artisan make:view <view directory name> --file=filename

php artisan delete:view <view name>

php artisan delete:view <view name> --file=filename

php artisan make:trait <trait1 trait2> // you can also create multiple traits

return [
    'files' => [
        'create',
        'edit',
        'index',
        'show', 
        // add more file names
    ]
];