I am trying to chaing 4 commands one after another Example:
$schedule->command('test1')->everyMinute()->onSuccess(function () use($schedule){
$schedule->call('test2')->onSuccess(function () use($schedule){
$schedule->call('test3')->onSuccess(function () use($schedule){
$schedule->call('test4');
});
});
});
But Only the first command gets executed.
Even if i use command
instead of call
inside the closures it does not work.
any help is appreciated.