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