seeder-load

Wire new models into the dungeon seeder import pipeline with RelationParsers.

66|10|Updated Aug 12, 2018
One-click install
npx skills add https://github.com/RaiderIO/keystone.guru --skill seeder-load
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: seeder-load
Source: https://github.com/RaiderIO/keystone.guru/tree/main/.claude/skills/seeder-load
Command: npx skills add https://github.com/RaiderIO/keystone.guru --skill seeder-load

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers integrate new models or child relations into the dungeon seeder import pipeline, ensuring they are correctly populated from JSON seeder files.

Core Features & Use Cases

  • Relation Parsing: Wire new models or child relations into the import pipeline.
  • Pre- and Post-Save Parsers: Handle child rows before and after parent rows are inserted.
  • Use Case: When adding a new model/child table that needs to be populated during database seeding.

Quick Start

Use the seeder-load skill to create a RelationParser for a new model and register it in the relevant RelationMapping.

Frequently Asked Questions about seeder-load

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I wire new models into a database seeding pipeline using php artisan?

To wire new models into database seeding, create a RelationParser for the new model and register it in the relevant RelationMapping to populate child tables from JSON seeder files during the php artisan import pipeline.

What is a pre-save or post-save RelationParser in database seeding?

A pre-save or post-save RelationParser is a mechanism that handles child rows before and after parent rows are inserted, ensuring correct relation mapping when populating models from JSON seeder files during database seeding.

How do I populate a new child table from JSON seeder files?

Populate a new child table from JSON seeder files by creating a RelationParser for the child model and registering it in the RelationMapping to wire it into the dungeon seeder import pipeline.

When do I need to use pre-save versus post-save RelationParsers for model relations?

Use pre-save RelationParsers to handle child rows before parent rows are inserted, and post-save RelationParsers to process child relations after the parent model is already saved during the database seeding import pipeline.

Does the dungeon seeder import pipeline support adding arbitrary model relations?

Yes, the dungeon seeder import pipeline supports adding arbitrary model relations by creating a RelationParser for the new model and registering it within the existing RelationMapping configuration.

Why are my child relations not populating during php artisan database seeding?

Child relations fail to populate during php artisan database seeding if the new model lacks a registered RelationParser in the RelationMapping, preventing the JSON seeder files from wiring into the import pipeline correctly.