PHPackages                             c-arena/eloquent-stalker - 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. c-arena/eloquent-stalker

ActiveLibrary

c-arena/eloquent-stalker
========================

Visualize eloquent models information

1.1.1(1y ago)04[5 PRs](https://github.com/C-ArenA/eloquent-stalker/pulls)MITPHPPHP ^8.2CI passing

Since Nov 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/C-ArenA/eloquent-stalker)[ Packagist](https://packagist.org/packages/c-arena/eloquent-stalker)[ Docs](https://github.com/c-arena/eloquent-stalker)[ GitHub Sponsors](https://github.com/c-arena)[ RSS](/packages/c-arena-eloquent-stalker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (9)Used By (0)

Visualize eloquent models information
=====================================

[](#visualize-eloquent-models-information)

[![Latest Version on Packagist](https://camo.githubusercontent.com/633821d63d0e161d788c9afd087680cb5f3bcaae1a3a9b6ac64734da685ffd5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f632d6172656e612f656c6f7175656e742d7374616c6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/c-arena/eloquent-stalker)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2fef05f99ecc9b7c7ef810c937edf8174f0a3f0649308345cfd076443a4b378d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f632d6172656e612f656c6f7175656e742d7374616c6b65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/c-arena/eloquent-stalker/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/72325de6c5aab79daa8938276793fec5836849f8bb2fbaa5e4acd82af34e9ab9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f632d6172656e612f656c6f7175656e742d7374616c6b65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/c-arena/eloquent-stalker/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3f4a8ba8fb3b08f5da48b127a917898c4f4190dbf218fd53419e39f40668f28d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f632d6172656e612f656c6f7175656e742d7374616c6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/c-arena/eloquent-stalker)

It helps visualize the eloquent models and their defined relationships. Very useful when comparing to the actual database so we can know what relationships are missing.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require c-arena/eloquent-stalker
```

Now you need to run the installer:

```
php artisan eloquent-stalker:install
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="eloquent-stalker-views"
```

You have to make sure the namespace and class name are directly related to the path of the models. Otherwise, it won't work as expected. We use the app\_path() to look for all the existant models in your project.

Usage
-----

[](#usage)

There are two ways in which you can use this package:

### Console

[](#console)

You can list all your models with its info using an artisan command we provide for you:

```
php artisan eloquent-stalker:models
```

You might also want to list all the relationships

```
php artisan eloquent-stalker:relationships
```

Optionally, you can pass the name of a model to check its relationships

```
php artisan eloquent-stalker:relationships User
```

### Browser

[](#browser)

We provide a route (which you can configure in the config file) that will be shown in development mode. By default, the route will be '/eloquent-stalker'.

[![alt text](image.png)](image.png)

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Carlos Arena](https://github.com/C-ArenA)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance68

Regular maintenance activity

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~2 days

Total

2

Last Release

551d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c23bd3d651d940a7ece285ce63d3f88842deb4e27faaeb8efafdd45583d01dd0?d=identicon)[C-ArenA](/maintainers/C-ArenA)

---

Top Contributors

[![C-ArenA](https://avatars.githubusercontent.com/u/44629176?v=4)](https://github.com/C-ArenA "C-ArenA (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

laravelc-arenaeloquent-stalker

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/c-arena-eloquent-stalker/health.svg)

```
[![Health](https://phpackages.com/badges/c-arena-eloquent-stalker/health.svg)](https://phpackages.com/packages/c-arena-eloquent-stalker)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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