0055-laravel-migrations-and-factories

Community

Make Laravel DB changes safe and testable

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents risky database edits by guiding you on when to create new migrations versus modifying existing ones, while keeping tests and seed data consistent through factories.

Core Features & Use Cases

  • Safe migration workflow: Learn to add new migrations instead of editing merged migrations, and use rollback or fresh workflows correctly.
  • Factory-driven model creation: Build realistic test data by pairing models with factories and using relationship-aware, state-based factory patterns.
  • Seeding and testing guidance: Create minimal yet realistic seed datasets and rely on factories for tests instead of manual inserts.

Quick Start

Generate a new Eloquent model with a paired migration and factory, then run migrations to apply the change safely.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0055-laravel-migrations-and-factories
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0055-laravel-migrations-and-factories

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.