master

laravel/framework

Last updated at: 29/12/2023 09:22

IndexDefinition.php

TLDR

The IndexDefinition class in the file IndexDefinition.php is a subclass of Fluent from the Illuminate\Support namespace. It provides methods for specifying various properties of an index, such as algorithm, language, deferrability, and initial immediate check.

<?php

namespace Illuminate\Database\Schema;

use Illuminate\Support\Fluent;

/**
 * @method $this algorithm(string $algorithm) Specify an algorithm for the index (MySQL/PostgreSQL)
 * @method $this language(string $language) Specify a language for the full text index (PostgreSQL)
 * @method $this deferrable(bool $value = true) Specify that the unique index is deferrable (PostgreSQL)
 * @method $this initiallyImmediate(bool $value = true) Specify the default time to check the unique index constraint (PostgreSQL)
 */
class IndexDefinition extends Fluent
{
    //
}