#Migrations.
5 posts filed under this topic.
AI-Assisted Eloquent: Database Design with Laravel Boost
Leverage Laravel Boost and AI to generate migrations, design Eloquent relationships, and optimize database schemas. A complete Laravel 13 AI development guide.
Unsigned Columns in Laravel Migrations
How to declare unsigned integer columns in Laravel migrations using unsignedBigInteger(), foreignId(), and the unsigned() modifier. Updated for Laravel 12.
Drop Composite Indexes in Laravel Migrations
Drop composite indexes in Laravel migrations using dropIndex() with column arrays or named strings. Updated for the latest Laravel 12 anonymous class syntax.
Create Composite Indexes in Laravel Migrations
How to create composite (multi-column) indexes in Laravel migrations using anonymous migration syntax. Covers naming, column order rules, and how to drop them.
Create Database Indexes in Laravel Migrations
How to add single, unique, full-text, and primary key indexes in Laravel migrations. Includes naming, dropping, and when each index type makes sense.