PHPackages                             axn/laravel-models-scanner - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. axn/laravel-models-scanner

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

axn/laravel-models-scanner
==========================

Scans Eloquent models to show some information about them.

1.0.0(3mo ago)036—0%MITPHPPHP ^8.4

Since Feb 17Pushed 1mo agoCompare

[ Source](https://github.com/AXN-Informatique/laravel-models-scanner)[ Packagist](https://packagist.org/packages/axn/laravel-models-scanner)[ Docs](https://github.com/AXN-Informatique/laravel-models-scanner)[ RSS](/packages/axn-laravel-models-scanner/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Laravel Models Scanner
======================

[](#laravel-models-scanner)

Scans Eloquent models to show some information about them. It also scans database (default connection) to compare with models.

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

[](#installation)

Install the package with Composer:

```
composer require axn/laravel-models-scanner --dev
```

Publish config if needed using these commands:

```
php artisan vendor:publish --tag=models-scanner-config
```

Config is published in `config/models-scanner.php`

Modify config options if needed.

Usage
-----

[](#usage)

In your browser, go to `https://{your_project_domain}/_models`

This URL is only accessible in local environment.

This showing:

- Table name with associated model class
- Information about if model uses SoftDeletes
- Models relationships with:
    - Method name
    - Method type (BelongsTo, HasMany, etc.)
    - Related model class
    - Information about withTrashed or whithoutTrashed on the relationship, if related model uses SoftDeletes
    - DB schema of the relationship (for example: `users.id ← posts.user_id`)
    - DB constraint name, if set
- Proposals of relationships detected from DB (aligned right)

BelongsTo relationships are colored in blue. HasMany relationships are colored in orange. Other types of relationships are left black. If red: there is an error (for example: the related model does not exist).

On a proposed relationship, you can left click to copy the corresponding code to clipboard. You can also right click to copy all proposed relationships code to clipboard.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance86

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

90d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1314974?v=4)[Axel Neumann](/maintainers/axn)[@axn](https://github.com/axn)

---

Top Contributors

[![lgtaxn](https://avatars.githubusercontent.com/u/23211553?v=4)](https://github.com/lgtaxn "lgtaxn (3 commits)")

### Embed Badge

![Health badge](/badges/axn-laravel-models-scanner/health.svg)

```
[![Health](https://phpackages.com/badges/axn-laravel-models-scanner/health.svg)](https://phpackages.com/packages/axn-laravel-models-scanner)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[ronasit/laravel-helpers

Provided helpers function and some helper class.

1475.7k13](/packages/ronasit-laravel-helpers)[boomcms/boom-core

Core classes for BoomCMS

193.0k6](/packages/boomcms-boom-core)

PHPackages © 2026

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