File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed
Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -126,20 +126,6 @@ function bcrypt($value, $options = array())
126126 }
127127}
128128
129- if ( ! function_exists ('collect ' ))
130- {
131- /**
132- * Create a collection from the given value.
133- *
134- * @param mixed $value
135- * @return \Illuminate\Support\Collection
136- */
137- function collect ($ value )
138- {
139- return Illuminate \Support \Collection::make ($ value );
140- }
141- }
142-
143129if ( ! function_exists ('config ' ))
144130{
145131 /**
Original file line number Diff line number Diff line change 22
33use Illuminate \Support \Arr ;
44use Illuminate \Support \Str ;
5+ use Illuminate \Support \Collection ;
56use Illuminate \Support \Debug \Dumper ;
67
78if ( ! function_exists ('append_config ' ))
@@ -358,6 +359,20 @@ function class_uses_recursive($class)
358359 }
359360}
360361
362+ if ( ! function_exists ('collect ' ))
363+ {
364+ /**
365+ * Create a collection from the given value.
366+ *
367+ * @param mixed $value
368+ * @return \Illuminate\Support\Collection
369+ */
370+ function collect ($ value = null )
371+ {
372+ return new Collection ($ value );
373+ }
374+ }
375+
361376if ( ! function_exists ('data_get ' ))
362377{
363378 /**
You can’t perform that action at this time.
0 commit comments