I\'m developing a package that has some scheduled tasks - is there way of registering / publishing them without affecting the base applications already set scheduled tasks?
In your package service provider, do this:
/** @var array list of commands to be registered in the service provider */
protected $moreCommands = [
\My\Package\CommandOne::class,
\My\Package\CommandTwo::class,
\My\Package\CommandThree::class,
];
Then in your boot() method of the service provider do this:
$this->commands($this->moreCommands);
Very good question, btw. Had me searching through the Laravel API docs to find the answer, and when I found it I implemented it in one of my own packages.