public function runnableInEnvironment(ScheduledCommandInterface $command)
    {
        $environment = $command->environment();

        //if any
        if ($environment == '*' || $environment == App::environment()) {
            return true;
        }

        if (is_array($environment) && in_array(App::environment(), $environment)) {
            return true;
        }

        return false;
    }
public function runnableInEnvironment(ScheduledCommandInterface $command)
    {
        $environment = $command->environment();

        //if any
        if ($environment == '*' || $environment == App::environment()) {
            return true;
        }

        if (is_array($environment) && in_array(App::environment(), $environment)) {
            return true;
        }

        return false;
    }
public function runnableInEnvironment ( ScheduledCommandInterface $ command ) { $ environment = $ command -> environment ( ) ; //if any if ( $ environment == '*' || $ environment == App :: environment ( ) ) { return true ; } if ( is_array ( $ environment ) && in_array ( App :: environment ( ) , $ environment ) ) { return true ; } return false ; }
Determine if a scheduled command is in the correct environment

@param \Indatus\Dispatcher\Scheduling\ScheduledCommandInterface $command

@return bool
Determine if a scheduled command is in the correct environment