Laravel Miscellaneous Helper Function: tap
tap($value, $callback) The tap helper function is used to call a given Closure (provided as an argument to the $callback parameter) with the given $value . The tap helper function will return the reference to the original $value as its return...