• File: Tappable.php
  • Full Path: /home/masbinta/public_html/core/vendor/laravel/framework/src/Illuminate/Support/Traits/Tappable.php
  • File size: 355 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Illuminate\Support\Traits;

trait Tappable
{
    /**
     * Call the given Closure with this instance then return the instance.
     *
     * @param  callable|null  $callback
     * @return $this|\Illuminate\Support\HigherOrderTapProxy
     */
    public function tap($callback = null)
    {
        return tap($this, $callback);
    }
}