Creating Indexes: Index Lengths & MySQL / MariaDB

Use Illuminate\Support\Facades\Schema;

/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    Schema::defaultStringLength(191);
}

Creating Indexes: Index Lengths & MySQL / MariaDB — Structure map

Clickable & Draggable!

Creating Indexes: Index Lengths & MySQL / MariaDB — Related pages: