PHPackages                             khomerikik/eloquent-lens - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. khomerikik/eloquent-lens

ActiveLibrary[Database &amp; ORM](/categories/database)

khomerikik/eloquent-lens
========================

Visual dashboard for Laravel Eloquent models — see relationships, scopes, casts, policies, and complexity at a glance. No database queries.

v1.8.1(2mo ago)919MITBladePHP ^8.1CI passing

Since Feb 23Pushed 2mo agoCompare

[ Source](https://github.com/KhomerikiK/eloquent-lens)[ Packagist](https://packagist.org/packages/khomerikik/eloquent-lens)[ RSS](/packages/khomerikik-eloquent-lens/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (16)Used By (0)

 [![EloquentLens loading screen](arts/image-2.png)](arts/image-2.png)

EloquentLens
============

[](#eloquentlens)

 A visual dashboard for your Laravel Eloquent models.
 Relationships, scopes, casts, policies, complexity — all at a glance. No database queries.

 [![Latest Version](https://camo.githubusercontent.com/2d31db4c729435f26d441590576ac06dbf7e341323ef6f992e93e3c186f8dd12/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b686f6d6572696b696b2f656c6f7175656e742d6c656e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/khomerikik/eloquent-lens) [![Total Downloads](https://camo.githubusercontent.com/5af805ebceec42c68667adc50503f0628bb494cd25978c98348b0c1585e8e089/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b686f6d6572696b696b2f656c6f7175656e742d6c656e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/khomerikik/eloquent-lens) [![PHP Version](https://camo.githubusercontent.com/89c605e3b7276ff6fa6d3cffc09a7b9213c29c3657194603d1683d8f50d1d3f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b686f6d6572696b696b2f656c6f7175656e742d6c656e732e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/89c605e3b7276ff6fa6d3cffc09a7b9213c29c3657194603d1683d8f50d1d3f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b686f6d6572696b696b2f656c6f7175656e742d6c656e732e7376673f7374796c653d666c61742d737175617265) [![Laravel Version](https://camo.githubusercontent.com/acb0f21aed6d1cd466c29883c82a4070564bb4ab727be013d28fecb69d7efac3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302532307c25323031312532307c25323031322d4646324432303f7374796c653d666c61742d737175617265266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/acb0f21aed6d1cd466c29883c82a4070564bb4ab727be013d28fecb69d7efac3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302532307c25323031312532307c25323031322d4646324432303f7374796c653d666c61742d737175617265266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465) [![License](https://camo.githubusercontent.com/b7d9f052ed59d7f9522b645a0e5b8ecd08bd30732a01681d10f2d73635afc391/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b686f6d6572696b696b2f656c6f7175656e742d6c656e733f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/b7d9f052ed59d7f9522b645a0e5b8ecd08bd30732a01681d10f2d73635afc391/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b686f6d6572696b696b2f656c6f7175656e742d6c656e733f7374796c653d666c61742d737175617265)

---

Install
-------

[](#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
------

[](#config)

Published to `config/eloquent-lens.php` after running `eloquent-lens:install`:

OptionDefaultDescription`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
---------

[](#the-board)

All your models laid out as cards, connected by relationship lines. Drag, zoom, filter by type.

 [![Full board with model cards and relationship lines](arts/image-3.png)](arts/image-3.png)

---

Detail Panel
------------

[](#detail-panel)

Click any model to open a side panel with four tabs:

 [![Board with detail panel open](arts/image-1.png)](arts/image-1.png)

**Overview** — traits, casts, accessors, fillable fields, complexity score
 [![Overview tab](arts/image-5.png)](arts/image-5.png)

**Relations** — every relationship with its type and target model
 [![Relations tab](arts/image-6.png)](arts/image-6.png)

**Behavior** — local scopes, global scopes, observers, custom methods
 [![Behavior tab](arts/image-7.png)](arts/image-7.png)

---

Path Finder
-----------

[](#path-finder)

Pick two models and discover how they connect through relationships, up to 5 hops deep.

 [![Path Finder showing routes between Balance and Transfer](arts/image-4.png)](arts/image-4.png)

---

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12

License
-------

[](#license)

MIT

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance85

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

15

Last Release

77d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6290ec275136755908a3a3eabe6d3cee9da7f14c65b8733f61908a68d40891a8?d=identicon)[khomerikiKkote](/maintainers/khomerikiKkote)

---

Top Contributors

[![KhomerikiK](https://avatars.githubusercontent.com/u/39499899?v=4)](https://github.com/KhomerikiK "KhomerikiK (17 commits)")

---

Tags

diagrameloquententity-relationship-diagramlaravelmodelsvisualizationlaravelschemaeloquentarchitecturemodelsdashboardscopesdiagramRelationshipsdev-toolsvisualizerobserverserd

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/khomerikik-eloquent-lens/health.svg)

```
[![Health](https://phpackages.com/badges/khomerikik-eloquent-lens/health.svg)](https://phpackages.com/packages/khomerikik-eloquent-lens)
```

###  Alternatives

[mtolhuys/laravel-schematics

A interface to help you build your models

1.5k84.3k1](/packages/mtolhuys-laravel-schematics)[devio/eavquent

EAV modeling package for Eloquent and Laravel.

6410.4k](/packages/devio-eavquent)[pursehouse/modeler-laravel-eloquent

Generate model classes for Eloquent in Laravel

112.4k](/packages/pursehouse-modeler-laravel-eloquent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
