PHPackages                             patinthehat/laravel-support - 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. patinthehat/laravel-support

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

patinthehat/laravel-support
===========================

Laravel 5 support classes

v1.2.2(9y ago)120MITPHPPHP &gt;=5.6.4

Since Feb 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/patinthehat/laravel-support)[ Packagist](https://packagist.org/packages/patinthehat/laravel-support)[ RSS](/packages/patinthehat-laravel-support/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (8)Used By (0)

LaravelSupport
--------------

[](#laravelsupport)

---

Various support classes for Laravel 5+.

---

\####Installation

Install with composer:

`composer require patinthehat/laravel-support`

---

#### Classes

[](#classes)

\#####ExtendedSeeder ExtendedSeeder is an extended version of the `Seeder` class and provides easy foreign key check enable/disable and table truncating. It also allows for easy access to [Faker](https://github.com/fzaninotto/Faker).

\######Methods

- `getFaker()` - returns an instance of Faker\\Factory (see [Faker](https://github.com/fzaninotto/Faker)).
- `init($tableName, $disableForeignKeyChecks = true, $deleteAllTableEntries = true)` - call at the beginning of `run()`.
- `cleanup()` - call at the end of `run()`.

\######Sample Usage:

```
use App\Support\ExtendedSeeder;
use App\User;

class UserTableSeeder extends ExtendedSeeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //disable foreign key checks, delete all existing table entries
        $this->init('users', true, true);
        //seed the table
        $text = $this->getFaker()->text();
        $this->cleanup();
    }
}
```

---

\#####ExtendedMigration ExtendedMigration is an extended version of the `Migration` class and provides easy foreign key creation/deletion.

\######Methods
--------------

[](#methods)

\######Sample Usage:

```
use LaravelSupport\Database\ExtendedMigration;

class CreateForeignKeys extends ExtendedMigration
{
    //define the FKs
    protected $foreignKeyDefinitions = [
        'info.author_id' => ['authors.id', 'cascade', 'cascade'],
        'info.book_id' => ['books.id', null, null],
        'table2.test_id' => 'tests.id',
        'myinfo.publisher_id' => null, //creates FK on 'publishers.id'
    ];

    //automatically create/delete FKs
    protected $autoCreateDefinedKeys = true;
    protected $autoDeleteDefinedKeys = true;
}
```

---

#### License

[](#license)

LaravelSupport is available under the [MIT License](LICENSE).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

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 ~7 days

Total

7

Last Release

3376d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5508707?v=4)[Patrick Organ](/maintainers/patinthehat)[@patinthehat](https://github.com/patinthehat)

---

Tags

eloquenteloquent-ormhelperslaravellaravel-5laravel-5-packagelaravel-packagelaravel5phpsupport-library

### Embed Badge

![Health badge](/badges/patinthehat-laravel-support/health.svg)

```
[![Health](https://phpackages.com/badges/patinthehat-laravel-support/health.svg)](https://phpackages.com/packages/patinthehat-laravel-support)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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