Back

Laravel devs, did you know Cache::get accepts a closure as a fallback? 💡

It runs only if the key is missing
But it does not store the result in cache ❌

Use Cache::remember if you want to store it ✅
image

2

56

In response to @MrPunyapal

Lol how can I be this blind to ignore those green and red highlighting lines 😳

23

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

/ 1000

Poll Options