Tappable

trait Tappable (View source)

Methods

mixed tap(callable|null $callback = null)

Call the given Closure with this instance then return the instance.

Details

mixed tap(callable|null $callback = null)

Call the given Closure with this instance then return the instance.

Parameters

callable|null $callback

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Support/Traits/Tappable.html