From d7fcd74a02d3225f342b5ffb39e65c4b32507bd2 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 3 Feb 2012 16:00:01 -0600 Subject: [PATCH] added with helper. --- laravel/helpers.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/laravel/helpers.php b/laravel/helpers.php index dc887317..4e4f6199 100644 --- a/laravel/helpers.php +++ b/laravel/helpers.php @@ -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; } \ No newline at end of file