Laravel ER Diagram Generator is a good package to generate entity relation diagrams by inspecting the relationships defined in your model files. It's very easy to use.

laravel ER Diagram generator

Installation

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.

Source Code

https://github.com/beyondcode/laravel-er-diagram-generator