# Laravel:factories Seeders

> Model and evolve Laravel data structures safely with integrity, performance, and rollout-aware migrations. Use for factories seeders tasks.

- Skill: `btafoya/laravel-factories-seeders` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add btafoya/laravel-factories-seeders`
- Raw SKILL.md: https://api.skillmd.com/api/skills/btafoya/laravel-factories-seeders/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: btafoya (https://skillmd.com/u/btafoya)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/btafoya/laravel-factories-seeders

---


# Factories Seeders (Laravel)

## Use when
- Designing schema/relations or data lifecycle changes.
- Improving query performance and integrity guarantees.

## Default workflow
1. Define domain ownership/cardinality and compatibility constraints.
2. Apply additive-safe schema/relationship changes first.
2. Update query loading/index strategy for affected paths.
2. Validate migration/relation behavior and rollback posture.

## Guardrails
- Preserve data integrity with constraints and transactions where needed.
- Avoid destructive one-step production migrations.
- Eliminate hidden N+1 in hot paths.

## Progressive disclosure
- Start with this file for execution posture and constraints.
- Load references only for deep implementation detail or edge cases.

## Output contract
- Schema/model/relation changes.
- Migration sequencing and rollback notes.
- Validation commands and observed outcomes.

## References
- `reference.md`
- `docs/complexity-tiers.md`

