Now, after reading the docs , I donβt see a direct function for this, but I see the option of using monthly() in combination with the when() method, so I thought if I could do this, maybe:
$schedule->command('send:reminders')->monthly()->when(function() { return date('d') == '23'; });
But now I'm afraid that this will not work, because, as far as I see, he will try to limit when() only once a month (maybe not on the date I want it), and then when he skips this month . At least this is what I guess from reading the source of laravel.
So I'm lost, how can I do this?
Evert source share