Mellivora/Database/Schema/Grammars/Grammar.php
protected function getCommandsByName(Blueprint $blueprint, $name)
    {
        return array_filter($blueprint->getCommands(), function ($value) use ($name) {
            return $value->name === $name;
        });
    }
protected function getCommandsByName(Blueprint $blueprint, $name)
    {
        return array_filter($blueprint->getCommands(), function ($value) use ($name) {
            return $value->name === $name;
        });
    }
protected function getCommandsByName ( Blueprint $ blueprint , $ name ) { return array_filter ( $ blueprint -> getCommands ( ) , function ( $ value ) use ( $ name ) { return $ value -> name === $ name ; } ) ; }
Get all of the commands with a given name.

@param \Mellivora\Database\Schema\Blueprint $blueprint
@param string                               $name

@return array
Get all of the commands with a given name .