Use query method rather than querying where 1 = 1

This commit is contained in:
James Brooks
2016-04-21 18:53:12 +01:00
parent c5ae146683
commit ebc6525b65
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ class ComponentGroupController extends AbstractApiController
*/
public function getGroups()
{
$groups = ComponentGroup::whereRaw('1=1');
$groups = ComponentGroup::query();
$groups->search(Binput::except(['sort', 'order', 'per_page']));