added with helper.
This commit is contained in:
parent
be144288b3
commit
d7fcd74a02
|
@ -362,4 +362,15 @@ function str_contains($haystack, $needle)
|
||||||
function value($value)
|
function value($value)
|
||||||
{
|
{
|
||||||
return ($value instanceof Closure) ? call_user_func($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;
|
||||||
}
|
}
|
Loading…
Reference in New Issue