dynamik-dev / db-chart
A package to generate a Mermaid diagram of your Laravel database schema.
                                    Fund package maintenance!
                                                                            
                                                                                                                                        Dynamik
                                                                                    
                                                                
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/dynamik-dev/db-chart
Requires
- php: ^8.4
- illuminate/contracts: ^10.0||^11.0||^12.0
- lorisleiva/laravel-actions: ^2.9
- spatie/laravel-data: ^4.15
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
This package is auto-updated.
Last update: 2025-10-25 04:57:46 UTC
README
This package is a simple package that allows you to generate a Mermaid diagram of your database schema. It will update in real time as you make changes to your database.
Warning
This package is intended for development use only and is simply a POC. Do not use in production environments as it exposes your database schema.
Installation
composer require dynamikdev/db-chart
Usage
Visit /db-chart to see the diagram!.
Configuration
Authorization
You can configure the package by adding a callback to the DbChartServiceProvider class. Here's an example of how to authorize the diagram to only be visible to authenticated users.
// AppServiceProvider.php public function register() { DbChartServiceProvider::authorizeUsing(function () { return auth()->check(); }); }
