PHPackages                             tonnyorg/laraseed - 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. tonnyorg/laraseed

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

tonnyorg/laraseed
=================

v2.0.1(5y ago)052proprietaryPHP

Since Dec 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/TonnyORG/laraseed)[ Packagist](https://packagist.org/packages/tonnyorg/laraseed)[ RSS](/packages/tonnyorg-laraseed/feed)WikiDiscussions master Synced today

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

LaraSeed
========

[](#laraseed)

Package built to extend the capabilities of the Seeders and simplify the Models of your Laravel application.

Current features:

- **Seeders trait**: prevent your seeders to run twice.
- **Version variable**: for burst cache of your images and other assets in the front-end.
- **Administrator model**: separate the functionalities for your application's users and your staff.
- **Soft deletes**: adding a soft-delete column to your user's table.
- **Base models**: for your authenticatable models and regular models (with or without soft-delete).

Installing the package
----------------------

[](#installing-the-package)

Configure `tonnyorg/laraseed` as a composer dependency running `composer require tonnyorg/laraseed`.

Register the package in your application's providers array (`config/app.php`):

```
    'providers' => [
        /*
         * Package Service Providers...
         */
        TonnyORG\LaraSeed\ServiceProvider::class,
    ],
```

---

Features &amp; How-tos
----------------------

[](#features--how-tos)

### Seeders trait

[](#seeders-trait)

Useful for scenarios when you need to run seeders on production. You can store those seeders that you have run already to prevent them to run again in the future. Imagine that you have a "migrations" table for your seeders, that's it.

**Instructions**:

In order to use this feature, you need to run the package's migrations through `php artisan migrate`, that will create the `seeders` table used by this feature.

Once you're done, the next step is to make use of the `SeedersHandler` class from your `database/seeds/DatabaseSeeder.php` file:

```
