laravel-migrations

Create and manage Laravel database migrations with zero-downtime schema changes.

Updated May 2, 2026
One-click install
npx skills add https://github.com/abdallhMoukdad/laravel-agent-skills --skill laravel-migrations-abdallhmoukdad
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: laravel-migrations
Source: https://github.com/abdallhMoukdad/laravel-agent-skills/tree/main/skills/laravel-migrations
Command: npx skills add https://github.com/abdallhMoukdad/laravel-agent-skills --skill laravel-migrations-abdallhmoukdad

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides developers in creating, modifying, and managing Laravel database migrations safely and efficiently.

Core Features & Use Cases

  • Migration File Creation: Automates the generation of migration files for new tables and schema changes.
  • Safe Schema Changes: Ensures modifications like renaming columns or adding NOT NULL fields are zero-downtime and reliable.
  • Best Practices Enforcement: Adheres to Laravel conventions for anonymous classes, column definitions, index, and foreign key management.
  • Use Case: You need to add a new nullable column, backfill existing data, then enforce NOT NULL constraints without downtime — this Skill provides the step-by-step guidance to do so safely.

Quick Start

Use the migration tools to generate a new migration, then write schema alterations that fit your production safety standards.

Frequently Asked Questions about laravel-migrations

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

FAQPage Schema
How do I add a NOT NULL column to a large Laravel table without downtime?▼

To rename a column safely in Laravel, use the `renameColumn` method within your migration. For zero-downtime safety, ensure no application code relies on the old column name during deployment, and update foreign key references accordingly to maintain schema integrity.

What are the best practices for creating Laravel database migrations?▼

To handle large tables in Laravel migrations, break down complex schema changes into smaller, incremental migrations. This involves adding nullable fields, backfilling data in batches, and applying constraints separately to avoid locking the database during production deployments.

Does this guidance support safe schema changes across different environments?▼

To generate a new Laravel migration file, use the `make:migration` Artisan command. This automates the creation of the migration file structure, allowing you to write schema alterations that fit your production safety standards and database conventions.

Why should I use a specific approach for Laravel schema modifications?▼

To ensure database safety during Laravel migrations, follow best practices for anonymous classes and column definitions. This Skill provides step-by-step guidance to safely add nullable columns, backfill data, and enforce constraints without causing downtime.