Topic View
#Migrations.
4 posts filed under this topic.
Laravel 5 min read
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.
Vishnu
Laravel 5 min read
Drop Composite Indexes in Laravel Migrations
How to drop a composite index in Laravel migrations using dropIndex() with a column array or a named index string. Updated for Laravel 12 anonymous class syntax.
Vishnu
Laravel 5 min read
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.
Vishnu
Laravel 5 min read
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.
Vishnu