Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,6 @@ function bcrypt($value, $options = array())
}
}

if ( ! function_exists('collect'))
{
/**
* Create a collection from the given value.
*
* @param mixed $value
* @return \Illuminate\Support\Collection
*/
function collect($value)
{
return Illuminate\Support\Collection::make($value);
}
}

if ( ! function_exists('config'))
{
/**
Expand Down
15 changes: 15 additions & 0 deletions src/Illuminate/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Support\Collection;
use Illuminate\Support\Debug\Dumper;

if ( ! function_exists('append_config'))
Expand Down Expand Up @@ -358,6 +359,20 @@ function class_uses_recursive($class)
}
}

if ( ! function_exists('collect'))
{
/**
* Create a collection from the given value.
*
* @param mixed $value
* @return \Illuminate\Support\Collection
*/
function collect($value = null)
{
return new Collection($value);
}
}

if ( ! function_exists('data_get'))
{
/**
Expand Down