Spent 2 hours debugging only to realize my cache()->remember() callback didn’t return anything! 🤦 Don’t make the same mistake. Always return a value, or it’ll re-run every time and miss the cache. Trust me, your future self will thank you! 😅
•
In response to @harris_rafto
Thas is a creative way of scheduling notifications! What is the use case vs using the scheduler? You don't have acces to a cronjob?
•
This was mainly an example in order to showcase a use case with nothing needed to be returned. You still need to return something (even just a Boolean) :)