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)04.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 1w ago

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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

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

4010d 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.9M110](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.3M27](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

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

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

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

792.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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