---
title: "BinotaLIU (@binotaliu) | Hashnode"
description: "BinotaLIU (@binotaliu) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@binotaliu"
---

@binotaliu

# BinotaLIU

@binotaliu · Joined August 2020

### [My Laravel Development Environment](https://blog.binota.org/my-laravel-dev-env?utm_source=hashnode&utm_medium=feed)

In Laravel applications, we use dd() to dump data, or Log::debug() to write debugging messages to log files. These are pretty handy functions. However, do you know there are other tools that can help you? These tools can help you to improve the effic...

3 min read · [blog.binota.org](https://blog.binota.org/my-laravel-dev-env?utm_source=hashnode&utm_medium=feed)

[May 8, 2023](https://hashnode.com/posts/my-laravel-dev-env/6458d75dccdbf8a9fda04ee0)

### [You Should Use ISO-8601 for Time Durations](https://blog.binota.org/you-should-use-iso-8601-for-time-durations?utm_source=hashnode&utm_medium=feed)

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 the following code: Cache::remember(key: 'all-users', ttl: 60 \* 60 \* 24, function () { return User::...

4 min read · [blog.binota.org](https://blog.binota.org/you-should-use-iso-8601-for-time-durations?utm_source=hashnode&utm_medium=feed)

[Jan 10, 2023](https://hashnode.com/posts/you-should-use-iso-8601-for-time-durations/63bd148c0581db66f7f915f0)

### [FnChain](https://blog.binota.org/fnchain?utm_source=hashnode&utm_medium=feed)

FnChain is an experimental helper I came up with when dealing with the following nesting closure: return $query ->where('is\_enabled', true) ->where('available\_from', '<=', DB::raw('NOW()')) ->where( fn (Builder $q) => $q ...

1 min read · [blog.binota.org](https://blog.binota.org/fnchain?utm_source=hashnode&utm_medium=feed)

[May 14, 2022](https://hashnode.com/posts/fnchain/627ff8ebbc9305ec39363874)

### [Model::fresh() v.s. Model::refresh()](https://blog.binota.org/modelfresh-vs-modelrefresh?utm_source=hashnode&utm_medium=feed)

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 method have nearly same description. So, what's the different between these two methods? Model::fre...

1 min read · [blog.binota.org](https://blog.binota.org/modelfresh-vs-modelrefresh?utm_source=hashnode&utm_medium=feed)

[Apr 15, 2022](https://hashnode.com/posts/modelfresh-vs-modelrefresh/62593f1652fb7bd53380c8c0)

### [Git Rebase IRL](https://blog.binota.org/git-rebase-irl?utm_source=hashnode&utm_medium=feed)

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 people might already known that there is a command call git rebase, but most of people don't know how ...

5 min read · [blog.binota.org](https://blog.binota.org/git-rebase-irl?utm_source=hashnode&utm_medium=feed)

[Sep 24, 2018](https://hashnode.com/posts/git-rebase-irl/62adf2b8d8afe74aa51fb172)
