class Console implements ExtenderInterface

Properties

protected $addCommands
protected $scheduled

Methods

command(string $command)

<p>Add a command to the console.</p>

schedule(string $command, callable|string $callback, array $args = [])

<p>Schedule a command to run on an interval.</p>

void
extend(Container $container, Extension $extension = null)

No description

Details

Console command(string $command)

<p>Add a command to the console.</p>

Parameters

string $command

Return Value

Console

Console schedule(string $command, callable|string $callback, array $args = [])

<p>Schedule a command to run on an interval.</p>

Parameters

string $command
callable|string $callback
array $args <p>An array of args to call the command with.</p>

Return Value

Console

See also

https://laravel.com/api/8.x/Illuminate/Console/Scheduling/Event.html
https://laravel.com/docs/10.x/scheduling#schedule-frequency-options for more information on available methods and what they do.

void extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension

Return Value

void