Package

Recca0120 Laravel Erd

Laravel ERD automatically generates Entity-Relationship Diagrams from your Laravel models and displays them using Vuerd.

Package

recca0120/laravel-erd

View on GitHub →

Laravel ERD

Laravel ERD automatically generates Entity-Relationship Diagrams from your Laravel models and displays them using erd-editor.

Preview

Here's a sample of what you can expect, generated from migrations and models:

View Live Demo

Requirements

Lang Version
PHP 7.4, 8.0, 8.1, 8.2, 8.3
Laravel 8, 9, 10, 11

Installation

Install the package via Composer:

composer require recca0120/laravel-erd:^0.1 --dev

Usage

Step 1: Generate the ERD

Run the following command:

php artisan erd:generate

Step 2: View the ERD

Open the following URL in your browser:

http://localhost/laravel-erd

Advanced Usage

Exclude Tables and Save to a Different Filename

step 1.

Run the command:

php artisan erd:generate --file=exclude-users.sql --exclude=users
step 2.

Open the URL:

http://localhost/laravel-erd/exclude-users

Generate an SVG Version

step 1.

Install erd-go and graphviz-dot.js using:

php artisan erd:install 
step 2.

Generate the SVG file:

php artisan generate --file=laravel-erd.svg
step 3.

View the SVG version:

http://localhost/laravel-erd/laravel-erd.svg

The SVG file can be found at storage/framework/cache/laravel-erd.

Feel free to ask if you have any questions or need further assistance!

Recca0120 Laravel Erd Related Articles

Generate Entity-Relationship Diagrams with Laravel image

Generate Entity-Relationship Diagrams with Laravel

Read article
Skipper is a powerful visual editor for Laravel Eloquent image

Skipper is a powerful visual editor for Laravel Eloquent

Read article
Laravel Entity Relation Diagram Generator image

Laravel Entity Relation Diagram Generator

Read article
2019 in Review image

2019 in Review

Read article
80 Laravel Tutorials, Packages, and Resources from 2016 image

80 Laravel Tutorials, Packages, and Resources from 2016

Read article
90 Laravel Tutorials, Packages, and Resources from 2023 image

90 Laravel Tutorials, Packages, and Resources from 2023

Read article

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

NativePHP

The fastest way to build fully native apps for any platform (with AI or not)

NativePHP

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift