Skip to content

Commit

Permalink
use helper
Browse files Browse the repository at this point in the history
  • Loading branch information
forxer committed Aug 25, 2020
1 parent 4d16e88 commit 3582aef
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 Axn\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_intersect_key($data, array_flip(['uri', 'name']));
return Arr::only($data, ['uri', 'name']);
}
}

1 comment on commit 3582aef

@JayBizzle
Copy link
Contributor

@JayBizzle JayBizzle commented on 3582aef Aug 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be reverted because we no longer depend on Illuminate\Support since merging #5

Please sign in to comment.