Download the PHP package farzai/laravel-schema without Composer
On this page you can find all versions of the php package farzai/laravel-schema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download farzai/laravel-schema
More information about farzai/laravel-schema
Files in farzai/laravel-schema
Package laravel-schema
Short Description Visualize and compare database schemas between Laravel migrations and your database
License MIT
Homepage https://github.com/parsilver/laravel-schema
Informations about the package laravel-schema
Laravel Schema
A Laravel package for visualizing and comparing database schemas. View your database structure through an interactive ER diagram dashboard and identify differences between your migration files and actual database state.
Similar to Laravel Horizon and Telescope, it provides a beautiful web interface for schema inspection. This package is view-only — it detects and visualizes differences but does not generate or apply migrations.
Features
- Interactive ER Diagram — Visualize your database schema with React Flow
- Schema Comparison — Compare migrations vs actual database state
- Multi-Database Support — MySQL, PostgreSQL, SQLite, and SQL Server
- Diff Detection — See added, removed, and modified tables/columns at a glance
- REST API — Programmatic access to schema data
- Gate-based Authorization — Secure access similar to Horizon/Telescope
- Dark Mode — Beautiful dark theme out of the box
Requirements
- PHP 8.4+
- Laravel 11.x or 12.x
Installation
Install the package via Composer:
Publish the configuration file:
Publish the frontend assets:
Configuration
The configuration file will be published to config/schema.php:
Authorization
By default, Laravel Schema is only accessible in the local environment. To configure access in other environments, define authorization logic in your AppServiceProvider:
Dashboard
Once installed, access the dashboard at:
The dashboard provides:
- ER Diagram — Interactive visualization of your database tables and relationships
- Schema Differences — Visual indicators for added, removed, and modified schema elements
- Table Details — Column types, indexes, and foreign key information
- Legend — Color-coded guide for understanding diff status
API Endpoints
Laravel Schema exposes a REST API for programmatic access:
| Method | Endpoint | Description |
|---|---|---|
| GET | /schema |
Dashboard (React SPA) |
| GET | /schema/api/tables |
List all database tables |
| GET | /schema/api/tables/{table} |
Get specific table details |
| GET | /schema/api/diff |
Full schema comparison |
| GET | /schema/api/diff/{table} |
Table-specific diff |
| GET | /schema/api/migrations |
List migration files |
| GET | /schema/api/status |
Schema sync status summary |
| POST | /schema/api/refresh |
Force schema refresh |
Testing
Run tests with coverage:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- parsilver
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-schema with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0
nikic/php-parser Version ^5.0