Download the PHP package khomerikik/eloquent-lens without Composer
On this page you can find all versions of the php package khomerikik/eloquent-lens. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download khomerikik/eloquent-lens
More information about khomerikik/eloquent-lens
Files in khomerikik/eloquent-lens
Package eloquent-lens
Short Description Visual dashboard for Laravel Eloquent models — see relationships, scopes, casts, policies, and complexity at a glance. No database queries.
License MIT
Informations about the package eloquent-lens
EloquentLens
A visual dashboard for your Laravel Eloquent models.
Relationships, scopes, casts, policies, complexity — all at a glance. No database queries.
Install
Add to your .env to enable the dashboard:
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:
Overview — traits, casts, accessors, fillable fields, complexity score
Relations — every relationship with its type and target model
Behavior — local scopes, global scopes, observers, custom methods
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