Package Data | |
---|---|
Maintainer Username: | recca0120 |
Maintainer Contact: | recca0120@gmail.com (recca0120) |
Package Create Date: | 2022-11-17 |
Package Last Update: | 2024-11-14 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-12 15:02:28 |
Package Statistics | |
---|---|
Total Downloads: | 9,281 |
Monthly Downloads: | 1,704 |
Daily Downloads: | 36 |
Total Stars: | 296 |
Total Watchers: | 6 |
Total Forks: | 13 |
Total Open Issues: | 3 |
Laravel ERD automatically generates Entity-Relationship Diagrams from your Laravel models and displays them using erd-editor.
Here's a sample of what you can expect, generated from migrations and models:
| Lang | Version | |:--------|:------------------------| | PHP | 7.4, 8.0, 8.1, 8.2, 8.3 | | Laravel | 8, 9, 10, 11 |
Install the package via Composer:
composer require recca0120/laravel-erd:^0.1 --dev
Run the following command:
php artisan erd:generate
Step 2: View the ERD
Open the following URL in your browser:
http://localhost/laravel-erd
Run the command:
php artisan erd:generate --file=exclude-users.sql --excludes=users
Open the URL:
http://localhost/laravel-erd/exclude-users
Install erd-go and graphviz-dot.js using:
php artisan erd:install
Generate the SVG file:
php artisan erd:generate --file=laravel-erd.svg
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!