protected function addFluentIndexes()
	{
		foreach ( $this->columns as $column )
		{
			foreach ( ['primary', 'unique', 'index'] as $index )
			{
				// If the index has been specified on the given column, but is simply
				// equal to "true" (boolean), no name has been specified for this
				// index, so we will simply call the index methods without one.
				if ( $column->$index === true )
				{
					$this->$index( $column->name );

					continue 2;
				}

				// If the index has been specified on the column and it is something
				// other than boolean true, we will assume a name was provided on
				// the index specification, and pass in the name to the method.
				elseif ( isset( $column->$index ) )
				{
					$this->$index( $column->name, $column->$index );

					continue 2;
				}
			}
		}
	}
protected function addFluentIndexes()
	{
		foreach ( $this->columns as $column )
		{
			foreach ( ['primary', 'unique', 'index'] as $index )
			{
				// If the index has been specified on the given column, but is simply
				// equal to "true" (boolean), no name has been specified for this
				// index, so we will simply call the index methods without one.
				if ( $column->$index === true )
				{
					$this->$index( $column->name );

					continue 2;
				}

				// If the index has been specified on the column and it is something
				// other than boolean true, we will assume a name was provided on
				// the index specification, and pass in the name to the method.
				elseif ( isset( $column->$index ) )
				{
					$this->$index( $column->name, $column->$index );

					continue 2;
				}
			}
		}
	}
protected function addFluentIndexes ( ) { foreach ( $ this -> columns as $ column ) { foreach ( [ 'primary' , 'unique' , 'index' ] as $ index ) { // If the index has been specified on the given column, but is simply // equal to "true" (boolean), no name has been specified for this // index, so we will simply call the index methods without one. if ( $ column -> $ index === true ) { $ this -> $ index ( $ column -> name ) ; continue 2 ; } // If the index has been specified on the column and it is something // other than boolean true, we will assume a name was provided on // the index specification, and pass in the name to the method. elseif ( isset ( $ column -> $ index ) ) { $ this -> $ index ( $ column -> name , $ column -> $ index ) ; continue 2 ; } } } }
Add the index commands fluently specified on columns.

@return void
Add the index commands fluently specified on columns .