PHP code example of laravolt / thunderclap

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

    

laravolt / thunderclap example snippets


Laravolt\Thunderclap\ServiceProvider::class,



return [
    // specify columns that you want to except
    'columns' => [
        'except' => ['id', 'created_at', 'updated_at', 'deleted_at', 'remember_token']
    ],
    'view' => [
        'extends' => 'layout'
    ],
    // custom your routes specification
    'routes'     => [
        'prefix'    => '',
        'middleware' => [],
    ],
    // custom your namespace per module
    'namespace'  => 'Modules',
    'target_dir' => base_path('modules'),
    
    // Template skeleton (stubs)
    'default'    => 'laravolt',

    // name => directory path, relative with stubs directory or absolute path
    'templates'  => [
        'laravolt' => 'laravolt',
    ],    
];
bash
php artisan laravolt:clap

		'providers' => [
			....
			 /*
            * Package Service Providers...
            */
            
            Modules\Category\Providers\ServiceProvider::class,
                
           /*
            * Application Service Providers...
            */
           ....
		]