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>

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 <p>The callback can be a closure or invokable class, and should accept:</p> <ul> <li>\Illuminate\Console\Scheduling\Event $event</li> </ul> <p>The callback should apply relevant methods to $event, and does not need to return anything.</p>
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/8.x/scheduling#schedule-frequency-options for more information on available methods and what they do.

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

Parameters

Container $container
Extension $extension