src/Database/Migration/Blueprint.php
/**
	 * Add a new index command to the blueprint.
	 *
	 * @param string $type
	 * @param string|array $columns
	 * @param string $index
	 * @param string|null $algorithm
	 * @return Command
	 */
Add a new index command to the blueprint.
Add a new index command to the blueprint .
protected function indexCommand($type, $columns, $index = null, $algorithm = null) {
		$columns = (array)$columns;
		$index = $index ?: $this->createIndexName($type, $columns);
		return $this->addCommand($type, compact('index', 'columns', 'algorithm'));
	}
protected function indexCommand ( $ type , $ columns , $ index = null , $ algorithm = null ) { $ columns = ( array ) $ columns ; $ index = $ index ? : $ this -> createIndexName ( $ type , $ columns ) ; return $ this -> addCommand ( $ type , compact ( 'index' , 'columns' , 'algorithm' ) ) ; }
Add a new index command to the blueprint.
Add a new index command to the blueprint .