PHPackages                             offline/oc-seeder-plugin - 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. offline/oc-seeder-plugin

ActiveOctober-plugin[Utility &amp; Helpers](/categories/utility)

offline/oc-seeder-plugin
========================

Laravel Seeder integration for October CMS.

v3.0.2(2y ago)121832MITPHPPHP &gt;=7.2

Since Sep 15Pushed 2y ago4 watchersCompare

[ Source](https://github.com/OFFLINE-GmbH/oc-seeder-plugin)[ Packagist](https://packagist.org/packages/offline/oc-seeder-plugin)[ RSS](/packages/offline-oc-seeder-plugin/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (19)Used By (0)

oc-seeder-plugin
================

[](#oc-seeder-plugin)

Laravel Seeder integration for October CMS.

This plugin integrates Laravel's Factory and Database Seeder features with October CMS.

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

[](#installation)

1. Install the plugin using Composer.

```
composer require offline/oc-seeder-plugin
```

2. Setup the random file helpers.

```
php artisan seeder:init
```

Defining factories
------------------

[](#defining-factories)

To define a new Factory for your plugin, create a `YourModelFactory.php` in the plugin's `factories` folder and define your factories [as you would in Laravel](https://laravel.com/docs/9.x/database-testing#defining-model-factories):

```
