You are viewing documentation for an outdated version. It is no longer supported!
Command and Schedule Registration
This package offers a way to register commands and schedules via configuration.
It serves as an alternative to the default registration method provided by Laravel.
Example: Commands
<?php
// configs/commands.php
return [
\Acme\Console\DatabaseDumpCommand::class,
\Acme\Console\ExportPicturesCommand::class,
\Acme\Console\RestoreUserCommand::class,
];
Example: Schedules
<?php
// configs/schedule.php
return [
'tasks' => [
\Acme\Tasks\DefinesCacheCleanupTasks::class,
\Acme\Tasks\DefinesUserTasks::class,
\Acme\Tasks\DefinesPeriodicNotificationTasks::class
]
];