Mojopollo\Schema\MakeMigrationJson::getColumnIndexes PHP Method

getColumnIndexes() public method

Get an array of valid column indexes
See also: https://laravel.com/docs/5.2/migrations#creating-indexes
See also: https://github.com/laracasts/Laravel-5-Generators-Extended#user-content-foreign-constraints
public getColumnIndexes ( ) : array
return array list of the possible column indexes
    public function getColumnIndexes()
    {
        // Set column indexes from the laravel class
        $indexes = ['primary', 'unique', 'index'];
        // Add the extended generators foreign keyword "bit of sugar"
        // https://github.com/laracasts/Laravel-5-Generators-Extended#user-content-foreign-constraints
        $indexes[] = 'foreign';
        // Return column indexes
        return $indexes;
    }