PHPackages                             grungestranger/laravel-eloquent-table-name-trait - 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. grungestranger/laravel-eloquent-table-name-trait

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

grungestranger/laravel-eloquent-table-name-trait
================================================

Eloquent trait to get the names of tables of your models statically.

v1.0.0(6y ago)113.3k↓75.6%MITPHPPHP &gt;=7.1.0

Since Oct 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/grungestranger/laravel-eloquent-table-name-trait)[ Packagist](https://packagist.org/packages/grungestranger/laravel-eloquent-table-name-trait)[ RSS](/packages/grungestranger-laravel-eloquent-table-name-trait/feed)WikiDiscussions master Synced 3d ago

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

grungestranger/laravel-eloquent-table-name-trait
================================================

[](#grungestrangerlaravel-eloquent-table-name-trait)

Provides an Eloquent trait to get the names of tables of your models statically.

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

[](#requirements)

- This package requires PHP 7.1+
- It works with Laravel &gt;=4.2

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

[](#installation)

Require this package with composer

```
composer require grungestranger/laravel-eloquent-table-name-trait

```

Load the trait in your Model.

```
use Grungestranger\TableName\TableName;

class Example extends Model {

    use TableName;
}
```

To get the name of the table, use the static getTableName method:

```
Example::getTableName();
```

License
-------

[](#license)

This open-source software is licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

2453d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ed3994288faac66f21af5e2db4e618bf97924e277a1fac4a475cbc6ae899100?d=identicon)[grungestranger](/maintainers/grungestranger)

---

Top Contributors

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

---

Tags

laraveleloquenttraitstaticmethodtablename

### Embed Badge

![Health badge](/badges/grungestranger-laravel-eloquent-table-name-trait/health.svg)

```
[![Health](https://phpackages.com/badges/grungestranger-laravel-eloquent-table-name-trait/health.svg)](https://phpackages.com/packages/grungestranger-laravel-eloquent-table-name-trait)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

400396.7k5](/packages/rtconner-laravel-likeable)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[waad/laravel-model-metadata

A robust Laravel package for handling metadata with JSON casting, custom relation names, and advanced querying capabilities.

854.6k](/packages/waad-laravel-model-metadata)[mozex/laravel-scout-bulk-actions

Import, flush, and queue-import all your Laravel Scout searchable models at once. Auto-discovers models, runs in bulk, tracks progress.

1539.3k](/packages/mozex-laravel-scout-bulk-actions)

PHPackages © 2026

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