PHP code example of beyondcode / laravel-er-diagram-generator

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

    

beyondcode / laravel-er-diagram-generator example snippets


# Register Service Providers
$app->register(BeyondCode\ErdGenerator\ErdGeneratorServiceProvider::class);
bash
php artisan vendor:publish --provider=BeyondCode\\ErdGenerator\\ErdGeneratorServiceProvider
bash
cp ./vendor/beyondcode/laravel-er-diagram-generator/config/config.php config/erd-generator.php
bash
php artisan generate:erd
bash
php artisan generate:erd output.png
bash
php artisan generate:erd output.svg --format=svg