recca0120/laravel-erd 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

recca0120/laravel-erd

最新稳定版本:0.4.0

Composer 安装命令:

composer require recca0120/laravel-erd

包简介

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

README 文档

README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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

erd-editor

Requirements

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

Installation

Install the package via Composer:

composer require recca0120/laravel-erd:^0.4 --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 --excludes=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 erd:generate --file=laravel-erd.svg

step 3.

View the SVG version:

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

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!

统计信息

  • 总下载量: 56.38k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 351
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 351
  • Watchers: 5
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-18