18 lines
		
	
	
		
			315 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			315 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Illuminate\Support\Traits;
 | 
						|
 | 
						|
trait Tappable
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Call the given Closure with this instance then return the instance.
 | 
						|
     *
 | 
						|
     * @param  callable|null  $callback
 | 
						|
     * @return mixed
 | 
						|
     */
 | 
						|
    public function tap($callback = null)
 | 
						|
    {
 | 
						|
        return tap($this, $callback);
 | 
						|
    }
 | 
						|
}
 |