protected function filterArtisanCommand($command)
    {
        $parts = explode(" ", $command);

        if (isset($parts[2])) {
            if (str_contains(strtolower($parts[0]), 'php') && str_contains(strtolower($parts[1]), 'artisan')) {
                unset($parts[0]);
                unset($parts[1]);
                return implode(" ", $parts);
            }
        }

        return $command;
    }
protected function filterArtisanCommand($command)
    {
        $parts = explode(" ", $command);

        if (isset($parts[2])) {
            if (str_contains(strtolower($parts[0]), 'php') && str_contains(strtolower($parts[1]), 'artisan')) {
                unset($parts[0]);
                unset($parts[1]);
                return implode(" ", $parts);
            }
        }

        return $command;
    }
protected function filterArtisanCommand ( $ command ) { $ parts = explode ( " " , $ command ) ; if ( isset ( $ parts [ 2 ] ) ) { if ( str_contains ( strtolower ( $ parts [ 0 ] ) , 'php' ) && str_contains ( strtolower ( $ parts [ 1 ] ) , 'artisan' ) ) { unset ( $ parts [ 0 ] ) ; unset ( $ parts [ 1 ] ) ; return implode ( " " , $ parts ) ; } } return $ command ; }
Get the command name without the junk.

@param  string  $command
@return string
Get the command name without the junk .