Laravel ER Diagram Generator
This package lets you generate entity relation diagrams by inspecting the relationships defined in your model files. It is highly customizable. Behind the scenes, it uses GraphViz to generate the graph.
If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming PHP Package Development video course.
Prerequisites
The minimum required PHP version is 7.1.0.
Requirements
This package requires the graphviz tool.
You can install Graphviz on MacOS via homebrew:
brew install graphviz
Or, if you are using Homestead:
sudo apt-get install graphviz
To install Graphviz on Windows, download it from the official website.
Installation
You can install the package via composer:
composer require beyondcode/laravel-er-diagram-generator --dev
If you are using Laravel 5.5+, the package will automatically register the service provider for you.
If you are using Lumen, you will need to add the following to bootstrap\app.php:
# Register Service Providers
$app->register(BeyondCode\ErdGenerator\ErdGeneratorServiceProvider::class);

