PHP code example of pursehouse / modeler-laravel-eloquent

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

    

pursehouse / modeler-laravel-eloquent example snippets


// ...
'providers' => [
    /*
     * Package Service Providers...
     */

    Pursehouse\Modeler\Coders\CodersServiceProvider::class,
],
// ...

public function register()
{
    if ($this->app->environment() == 'local') {
        $this->app->register(\Pursehouse\Modeler\Coders\CodersServiceProvider::class);
    }
}
shell
php artisan vendor:publish --tag=pursehouse-modeler
php artisan config:clear
shell
php artisan pursehouse:modeler
shell
php artisan pursehouse:modeler --table=users
shell
php artisan pursehouse:modeler --connection=mysql
shell
php artisan pursehouse:modeler --schema=shop