diff --git a/helpers.md b/helpers.md index 5bfc0829b63..ff6fb5c6de6 100644 --- a/helpers.md +++ b/helpers.md @@ -1658,6 +1658,8 @@ If no Closure is passed to the `tap` function, you may call any method on the gi 'email' => $email, ]); +If you prefer to call the `tap` function on an instance over calling the global helper, you can add it to your own classes by using the `\Illuminate\Support\Traits\Tappable` trait. The `tap` function of this trait only takes one argument: a Closure. The instance itself will be passed to this Closure and then be returned by the `tap` function. + #### `throw_if()` {#collection-method}