In Laravel applications, we use dd() to dump data, or Log::debug() to write debugging messages to log files. These are pretty handy functions....
Cache TTL In writing cache logic, we often need to specify a time duration for the cache to expire. It's called TTL, or "Time To Live." Considering...
FnChain is an experimental helper I came up with when dealing with the following nesting closure: return $query ->where('is_enabled', true) ...
Every time I try to "refresh" a model, I have always encountered this problem. Is it Model::fresh()? Or Model::refresh(). Both method exists. And both...
This is an old blog post I wrote back in 2018. I pick it up from the wayback machine and fixed some typo & re-wording some paragraphs. Intro Many...