Artisan-driven database diagrams

Laravel DB ERD Generator

Generate clean entity relationship diagrams from your Laravel database schema with support for Graphviz exports and an interactive HTML view.

5 database drivers
4 export formats
1 Artisan command
php artisan erd:generate --format=html --driver=mysql
users
  • id
  • email
  • created_at
orders
  • id
  • user_id
  • status
order_items
  • id
  • order_id
  • product_id
payments
  • id
  • order_id
  • amount

Laravel native

Ships as a package with auto-discovery, publishable config, publishable views, and one Artisan command.

Driver aware

Resolves metadata through MySQL, PostgreSQL, SQLite, SQL Server, and Oracle relation readers.

Export friendly

Outputs PDF, PNG, SVG, and HTML diagrams so teams can use the same schema map in different workflows.

Customizable

Override the Blade view and tune output settings through the package config.