Skip to content
This repository was archived by the owner on Sep 27, 2022. It is now read-only.

Commit 86128fc

Browse files
author
Sandeesh
committed
Removed request 'intersect' method usage to support Laravel 5.5. fixes #10 (Filters are not working in Laravel 5.5).
1 parent c199aa3 commit 86128fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/RealWorld/Filters/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function getFilterMethods()
5454
*/
5555
protected function getFilters()
5656
{
57-
return $this->request->intersect($this->getFilterMethods());
57+
return array_filter($this->request->only($this->getFilterMethods()));
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)