1. Go to this page and download the library: Download recca0120/laravel-erd 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/ */
recca0120 / laravel-erd example snippets
return [
// Route URI for the web viewer
'uri' => env('LARAVEL_ERD_URI', 'laravel-erd'),
// Where generated files are stored
'storage_path' => storage_path('framework/cache/laravel-erd'),
// Default output extension (when --file is not specified)
'extension' => env('LARAVEL_ERD_EXTENSION', 'sql'),
// Middleware for the web viewer route
'middleware' => [],
// Paths to erd-go and graphviz-dot binaries
'binary' => [
'erd-go' => env('LARAVEL_ERD_GO', '/usr/local/bin/erd-go'),
'dot' => env('LARAVEL_ERD_DOT', '/usr/local/bin/dot'),
],
// Per-connection database overrides (see below)
'connections' => [],
];