PHPackages                             martinbean/eloquent-singular-table-names - 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. martinbean/eloquent-singular-table-names

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

martinbean/eloquent-singular-table-names
========================================

Makes Eloquent models use singular (rather than plural) table names by default.

v1.0.2(10y ago)14.8k1MITPHP

Since Aug 26Pushed 10y agoCompare

[ Source](https://github.com/martinbean/eloquent-singular-table-names)[ Packagist](https://packagist.org/packages/martinbean/eloquent-singular-table-names)[ RSS](/packages/martinbean-eloquent-singular-table-names/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

Eloquent singular table names
=============================

[](#eloquent-singular-table-names)

Makes Eloquent models use singular (rather than plural) table names by default.

Usage
-----

[](#usage)

Simple apply the trait to your Eloquent model:

```
namespace App;

use Illuminate\Database\Eloquent\Model;
use MartinBean\Database\Eloquent\SingularTableName;

class User extends Model
{
    use SingularTableName;
}
```

The default table name will be `user` now, rather than `users`.

If you wish to use singular table names for *all* of your models, then you can create an abstract class that implements the trait, and have all of your models extend that class:

```
namespace App;

use Illuminate\Database\Eloquent\Model;
use MartinBean\Database\Eloquent\SingularTableName;

abstract class SingularModel extends Model
{
    use SingularTableName;
}
```

```
namespace App;

class User extends SingularModel
{
    // No need to implement trait
}
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

3

Last Release

3965d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb0c631c9ca0575575f7dfb760bc0462ff52cfd60a2b8b7e4702a0f136cf2c4c?d=identicon)[martinbean](/maintainers/martinbean)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/martinbean-eloquent-singular-table-names/health.svg)

```
[![Health](https://phpackages.com/badges/martinbean-eloquent-singular-table-names/health.svg)](https://phpackages.com/packages/martinbean-eloquent-singular-table-names)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

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