W3cubDocs

/Laravel 11

Tappable

trait Tappable (View source)

Methods

tap($callback = null)

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

Details

tap($callback = null)

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

Parameters

$callback

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