Laravel Entity Relation Diagram Generator

Laravel Entity Relation Diagram Generator

Laravel Entity Relation (ER) Diagram Generator is a package by Marcel Pociot that lets you generate entity relation diagrams by inspecting the relationships defined in your model classes. It produces images using GraphViz.

The ER Diagram package is highly customizable, including Graphviz options that you want to be applied to your graph, table styles, and model paths, to name a few.

For example, if your model classes live in a different namespace than the default path, you can configure multiple paths with the following configuration:

'directories' => [
    app_path('models'), // app/models/
],

Check out the package configuration file for full customization and configuration details.

To generate your application’s visual model graph, you use the artisan console command:

php artisan generate:erd

# Custom filename
php artisan generate:erd output.png

# SVG format
php artisan generate:erd output.svg --format=svg

Learn More

You can check out this package and readme on the official GitHub repository. To learn more about the underlying tool used to create graph visualizations, you can learn more on graphviz.org.


Filed in: News


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Laravel / Vue.JS Developer - Join an amazing team!
Remote
JTR Solutions
Mid / Sen. Software Engineer
Clearwater, FL
ShineOn
Remote PHP / Laravel Developer
Remote
SpringboardVR
Senior PHP/Laravel Developer: Your Dream Work Environment
Remote
iPhone Photography School
Senior Laravel Developer
Leidseplein, Amsterdam
Orderchamp.com
PHP Developer
Remote
X-Team
Senior Laravel Developer (Canada and India)
London, Ontario, Canada
Factory Bucket Inc.