diff --git a/src/Traits/Kabsa.php b/src/Traits/Kabsa.php index aaa3cb1..cec2eb2 100755 --- a/src/Traits/Kabsa.php +++ b/src/Traits/Kabsa.php @@ -11,7 +11,7 @@ public static function all($columns = []) { self::unguard(); $self = new self(); - return Collection::make($self->rows ?? [])->map(fn ($row) => new self($row)); + return Collection::make($self->rows ?? [])->map(function ($row) { return new self($row); }); } public function __call($method, $parameters)