added with helper.
This commit is contained in:
@@ -362,4 +362,15 @@ function str_contains($haystack, $needle)
|
||||
function value($value)
|
||||
{
|
||||
return ($value instanceof Closure) ? call_user_func($value) : $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Short-cut for constructor method chaining.
|
||||
*
|
||||
* @param mixed $object
|
||||
* @return mixed
|
||||
*/
|
||||
function with($object)
|
||||
{
|
||||
return $object;
|
||||
}
|
||||
Reference in New Issue
Block a user