Skip to content

Commit 44e5bb5

Browse files
authored
Fix array_only no long available in laravel
Same as #26 Since laravel 5.7 array_only method is moved into Arr helper class
1 parent dbf4140 commit 44e5bb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Utils/Model.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace LasseRafn\Economic\Utils;
44

55
use Illuminate\Support\Str;
6+
use Illuminate\Support\Arr;
67

78
class Model
89
{
@@ -61,7 +62,7 @@ public function toArray()
6162
public function toPutArray($overrides = [])
6263
{
6364
if (isset($this->puttable)) {
64-
return array_merge(array_only(
65+
return array_merge(Arr::only(
6566
$this->toArray(),
6667
$this->puttable
6768
), $overrides);

0 commit comments

Comments
 (0)