I have observed local query scopes do not work with cron job.
To make it work, I simply scaled down. I put the conditions itself rather than using local query scope.
I know it completely defeats the purpose of creating local query scopes in the first place but at least for now it made the cron job run. Let’s hope this issue gets addressed soon. It is really convenient to use local query scopes.
There is one more issue I found with Laravel cron job.