I have a artisan command that needs to be run the third monday of every month. I thought it should be easy with a simple cron rule saying "0 9 17-23 * 1", but now (a month after making the rule) I realize that my job has been run on EVERY monday of the month AND on EVERY day between the 17th and 23th. So obviously this doesn't work as I thought... After some googling it seems it's not easily solvable using only cron rules.
So, looking at the Laravel scheduling docs I think I have a solution, but I'm looking for verification I'm thinking right. If I instead do like this, will that do what I want? Don't want to try it the hard way again...
cron('0 9 17-23 * *')->mondays()