diff --git a/src/Collect/Support/helpers.php b/src/Collect/Support/helpers.php index 1a0dd63..2ea16e0 100755 --- a/src/Collect/Support/helpers.php +++ b/src/Collect/Support/helpers.php @@ -18,14 +18,14 @@ function array_wrap($value) } } - if (! function_exists('collect')) { + if (! function_exists('collection')) { /** * Create a collection from the given value. * * @param mixed $value * @return \Tightenco\Collect\Support\Collection */ - function collect($value = null) + function collection($value = null) { return new Collection($value); }