protected function getCommandByName(Blueprint $blueprint, $name)
    {
        $commands = $this->getCommandsByName($blueprint, $name);

        if (count($commands) > 0) {
            return reset($commands);
        }
    }
protected function getCommandByName(Blueprint $blueprint, $name)
    {
        $commands = $this->getCommandsByName($blueprint, $name);

        if (count($commands) > 0) {
            return reset($commands);
        }
    }
protected function getCommandByName ( Blueprint $ blueprint , $ name ) { $ commands = $ this -> getCommandsByName ( $ blueprint , $ name ) ; if ( count ( $ commands ) > 0 ) { return reset ( $ commands ) ; } }
Get the primary key command if it exists on the blueprint.

@param  \Illuminate\Database\Schema\Blueprint  $blueprint
@param  string  $name
@return \Illuminate\Support\Fluent|null
Get the primary key command if it exists on the blueprint .