Back

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! 😅
image

1

144

In response to @albert

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) :)

132

  • No matching results...
  • Searching...

/ 1000