Commands are any piece of code that Cronboard is able to execute as a scheduled task. Cronboard supports a number of object / class types and will auto-discover these as part of its recording process.
Here's a list of what can be discovered and made available to you:
Illuminate\Console\Command
Illuminate\Contracts\Queue\ShouldQueue
public function __invoke()
methodClosure
object passed to Laravel's schedulerexec()
calls in your console kernel{warning} In some cases, like Closures you need to always provide a
name()
ordescription()
in order them to be tracked properly. Failing to do so may result in unintended mixups between task executions if you have multiple Closure-based tasks defined.