laravel-migrations

Manage Laravel 12 database schema evolution through migration files.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill laravel-migrations-jorge-ivan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-migrations
Source: https://github.com/Jorge-Ivan/uam-hogar-nazareth-web/tree/main/.claude/skills/laravel-migrations
Command: npx skills add https://github.com/Jorge-Ivan/uam-hogar-nazareth-web --skill laravel-migrations-jorge-ivan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and tools for managing database schema changes in Laravel applications, ensuring data integrity and efficient development workflows.

Core Features & Use Cases

  • Schema Creation & Modification: Define, alter, and drop database tables and columns with ease.
  • Data Integrity: Implement foreign key constraints, indexes, and unique constraints to maintain data consistency.
  • Data Population: Utilize seeders and factories to populate databases with test or reference data.
  • Use Case: When developing a new feature that requires new database tables and relationships, use this Skill to generate and manage the necessary migration files, ensuring the database schema evolves correctly alongside the application code.

Quick Start

Use the laravel-migrations skill to create a new migration for adding a 'slug' column to the 'posts' table.

Frequently Asked Questions about laravel-migrations

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

FAQPage Schema
How do I create a Laravel migration to add a new column to an existing database table?

To create a Laravel migration for adding a column, generate a new migration file and use the schema builder to define the column type and modifiers within the up method. This ensures your database schema evolves correctly alongside the application code.

What is the best way to manage database schema changes in Laravel applications?

Managing database schema changes in Laravel is best handled through migration files, which track table creation, column modifications, and foreign key constraints to ensure data integrity across development and production environments.

How do foreign key constraints and indexes work in Laravel migrations?

Foreign key constraints and indexes in Laravel migrations enforce data consistency at the database level. You define them within migration files using the schema builder to link related tables and optimize query performance.

Can I use Laravel migrations for populating a database with test data?

Yes, Laravel migrations support database population through seeders and factories. You can utilize these components to generate and insert test or reference data, which is essential for testing and development workflows.

Does this Laravel migration guidance cover troubleshooting failed production deployments?

Yes, this guidance supports production deployment and troubleshooting of migration processes. It covers handling schema evolution issues to ensure database changes apply correctly without disrupting data integrity.

When do I need to use specific column types and modifiers in a Laravel migration?

You need specific column types and modifiers in a Laravel migration when defining table schemas to accurately map data formats, enforce constraints like uniqueness, and ensure the database structure matches application requirements.