In your package’s service provider, you can use:
use Illuminate\Console\Scheduling\Schedule;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
public function boot()
{
$this->app->booted(function () {
$schedule = app(Schedule::class);
$schedule->command('foo:bar')->everyMinute();
});
}
}
<?XML:NAMESPACE PREFIX = «[default] http://www.w3.org/2000/svg» NS = «http://www.w3.org/2000/svg» />