191

Product support

Visit this product's website for support.

Categories

Seeder

Laravel Seeder integration for October CMS.

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

Documentation

You can find the documentation of this plugin on GitHub: https://github.com/OFFLINE-GmbH/oc-seeder-plugin

Documentation

You can find the documentation of this plugin on GitHub: https://github.com/OFFLINE-GmbH/oc-seeder-plugin

  • Found the plugin useful on 9 Sep, 2020

    This plugin is great. The new version includes a really helpful System\Model\File factory, as well some other built for common models (RainLab Post / User ecc ecc). I really love OFFLINE works, thank you for your great tools!

  • Found the plugin useful on 23 Aug, 2020

    Nice plugin, I really like it, The tool that was missing in my development toolbox. Thanks OFFLINE.

3.0.2

Fixed October 3.6 compatibility issue

Feb 28, 2024

3.0.1

Added Laravel 10 support

Feb 28, 2024

3.0.0

Renamed artisan command to offline:seeder, to prevent conflict with October 3.3

Jun 14, 2023

2.1.2

Bugfix for Tailor seeders

Sep 27, 2022

2.1.0

Implemented seeder support for Tailor entities

Sep 26, 2022

2.0.2

Fixed factory bug

Jul 12, 2022

2.0.1

Added missing Faker dependency

Jul 11, 2022

2.0.0

!!! Updated Factory definitions to be compatible with Laravel 9 / October 3. Check the README for the new syntax.

Jul 08, 2022

1.0.8

Introduced seeder:init command to make the random_image() helper more performant

Aug 26, 2021

1.0.7

Optimized console and log file output in case of errors

Apr 06, 2021

1.0.6

Fixed parsing of --plugins option (it is now properly case-insensitive)

Apr 06, 2021

1.0.5

Bugfix release

Jan 25, 2021

1.0.4

Fixed typo in default seeder registration.

Nov 29, 2020

1.0.3

Seeder now keeps track of already seeded plugins (makes it easier to run the plugin:seed command repeatedly during development). You can now also run specific seeders using the --plugins option.

Sep 15, 2020

1.0.2

Added twig helper functions to get a random image or file directly in your markup

Sep 03, 2020

1.0.1

Initial release

Aug 10, 2020

Migrate from 1.0

To migrate old seeders from Version 1.0 of this plugin, make the following changes:

  1. Move all factories from the factories.php to their own Factory classes in the factories directory.
  2. Change your registerSeeder method:
// Old
factory(YourModel::class)->make();
factory(YourModel::class)->states('special')->make();
// New
YourModel::factory()->make();
YourModel::factory()->special()->make();