PHP code example of pietmarcus / modeldocgenerator
1. Go to this page and download the library: Download pietmarcus/modeldocgenerator 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/ */
pietmarcus / modeldocgenerator example snippets
use Illuminate\Database\Capsule\Manager as Capsule;
// Define the directory where the models reside.
// Remember to change the value if the config-file is in a config-directory
define('MODELS_DIRECTORY', __DIR__ . '/src/Models');
// Define the root namespace of the models
define('ROOT_NAMESPACE', 'App\Models');
// Load the global settings
$config =