Use query method rather than querying where 1 = 1
This commit is contained in:
@@ -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']));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user