PHP code example of santoshachari / generators

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

    

santoshachari / generators example snippets


Laracademy\Generators\GeneratorsServiceProvider::class

public function register()
{
    if($this->app->environment() == 'local') {
        $this->app->register('\Laracademy\Generators\GeneratorsServiceProvider');
    }
}

php artisan

php artisan generate:modelfromtable --table=users

php artisan generate:modelfromtable --table=users,posts

php artisan generate:modelfromtable --table=user --folder=app\Models