Skip to content

Module/Seeding #1

@liviumalvin

Description

@liviumalvin

If you need to seed a module this is how you do it:

Create a class which extends Anomaly\Streams\Platform\Database\Seeder\Seeder in the module directory : module-module/ModuleModuleSeeder.php

You can use this class to handle the seeding directly, or you can use $this->call(FooBarSeeder::class) (where FooBarSeeder can be a class which also extends the Anomaly Seeder specified above and which would reside in your module src directory using for example the following pattern src/Database/Seed/FooBarSeeder.php )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions