---
title: "Discussion on \"FnChain\" | Hashnode"
description: "Discussion on \"FnChain\". FnChain is an experimental helper I came up with when dealing with the following nesting closure:\nreturn $query\n    ->where('is_enabled', true)\n    ->where('available_from', '<=', DB::raw('NOW()'))\n    ->where(\n        fn (Builder $q) => $q\n         ..."
url: "https://hashnode.com/posts/fnchain/627ff8ebbc9305ec39363874"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [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 ...

May 14, 2022 · 1 min read · blog.binota.org  
Updated Jan 10, 2023  
Read the article

-   [#php](https://hashnode.com/tag/php)

## Written by

[BinotaLIU](https://hashnode.com/@binotaliu)

@binotaliu

  
[View profile](https://hashnode.com/@binotaliu)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
