LazyRecord\Schema\DeclareColumn::index PHP Method

index() public method

public index ( $indexName = null, $using = null )
    public function index($indexName = null, $using = null)
    {
        $this->attributes['index'] = $indexName ?: true;
        $this->attributes['index_using'] = $using;
        return $this;
    }