PHPackages                             touhidurabir/laravel-seed-extender - 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. touhidurabir/laravel-seed-extender

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

touhidurabir/laravel-seed-extender
==================================

An opinioned approach to extend the laravel seed classes.

1.2.0(1y ago)982MITPHPPHP &gt;=7.4.0

Since Sep 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/touhidurabir/laravel-seed-extender)[ Packagist](https://packagist.org/packages/touhidurabir/laravel-seed-extender)[ RSS](/packages/touhidurabir-laravel-seed-extender/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)Dependencies (6)Versions (9)Used By (0)

Laravel Seed Extender
=====================

[](#laravel-seed-extender)

A highly opinioned way to work with the laravel seeder.

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

[](#installation)

Require the package using composer:

```
composer require touhidurabir/laravel-seed-extender
```

WHY ?
-----

[](#why-)

As mentioned, this is a highly opinioned way to work with seeder. We have popular **Faker** library and **Model Factories** to seed model table and that seems like the obious choice . But sometimes in production or even in the development purpose we need real life data to seed model table and for that purpose need seeder classes .

Now this package does not introduce any new mechanism of the seeding using the seeder classes but just add some ability to manupulate the each seeder class as per need . Basically it add some extar feature/ability to the seeder class.

Usage
-----

[](#usage)

To generate a new seeder class of this package, run the following command

```
php artisan make:extend-seeder SeederClassName --table=table_name
```

That will generate an seeder new seeder class at the **/database/seeders** location . for example , a basic user seeder class will look like this

```
