Laravel Database Migrations

•
7
•

Automates the creation and management of Laravel database migrations while enforcing strict naming conventions and multi-tenant best practices.

This skill provides a standardized approach for managing Laravel database schemas, ensuring every migration is production-ready and follows framework-specific best practices. It intelligently handles multi-database architectures by identifying correct connections and prefixes, automates the generation of reversible PHP migration files, and enforces critical data integrity rules such as using decimals for currency and adding indexes for query optimization. Whether you are adding a single column or architecting a complex multi-tenant system, this skill ensures consistency and safety across your database layer.

主要功能

01Automatic indexing for performance-critical WHERE and JOIN columns
02Automated php artisan migration command generation
037 GitHub stars
04Mandatory reversible down() method verification
05Intelligent database connection and multi-tenant prefix detection
06Enforcement of strict column naming and data type conventions

使用场景

01Managing schema changes across complex multi-database or multi-tenant Laravel environments
02Safely adding columns to existing production tables with proper ordering
03Creating new tables with standardized prefixes and foreign key constraints