Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from JBonwick/laravel-6-support
Browse files Browse the repository at this point in the history
Add support for Laravel 6+
  • Loading branch information
samturrell authored Jun 5, 2020
2 parents cdb1d42 + dd4eeaa commit bede1a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Routes/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace SamTurrell\Laroute\Routes;

use Illuminate\Routing\Route;
use Illuminate\Support\Arr;
use Lord\Laroute\Routes\Collection as BaseCollection;

class Collection extends BaseCollection
Expand Down Expand Up @@ -36,6 +37,6 @@ protected function getRouteInformation(Route $route, $filter, $namespace)
return null;
}

return array_only($data, ['uri', 'name']);
return Arr::only($data, ['uri', 'name']);
}
}

0 comments on commit bede1a4

Please sign in to comment.