khomerikik/eloquent-lens
最新稳定版本:v1.8.1
Composer 安装命令:
composer require khomerikik/eloquent-lens
包简介
Visual dashboard for Laravel Eloquent models — see relationships, scopes, casts, policies, and complexity at a glance. No database queries.
关键字:
README 文档
README
EloquentLens
A visual dashboard for your Laravel Eloquent models.
Relationships, scopes, casts, policies, complexity — all at a glance. No database queries.
Install
composer require khomerikik/eloquent-lens --dev php artisan eloquent-lens:install
Add to your .env to enable the dashboard:
ELOQUENT_LENS_ENABLED=true
Then open /eloquent-lens in your browser.
Dev only — install with
--dev. The dashboard is disabled by default and must be explicitly enabled.
Config
Published to config/eloquent-lens.php after running eloquent-lens:install:
| Option | Default | Description |
|---|---|---|
path |
'eloquent-lens' |
URL prefix — dashboard is available at /{path} |
middleware |
['web'] |
Route middleware — add 'auth' to restrict access |
model_paths |
[app_path('Models')] |
Directories to scan for model files |
model_namespace |
'App\\Models' |
Base namespace for your models |
excluded_models |
[] |
Model classes to skip during scanning |
enabled |
false |
Disabled by default — set ELOQUENT_LENS_ENABLED=true in .env to enable |
The Board
All your models laid out as cards, connected by relationship lines. Drag, zoom, filter by type.
Detail Panel
Click any model to open a side panel with four tabs:
Path Finder
Pick two models and discover how they connect through relationships, up to 5 hops deep.
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
License
MIT
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-23






