Use query method rather than querying where 1 = 1
This commit is contained in:
@@ -32,7 +32,7 @@ class ComponentController extends AbstractApiController
|
||||
public function getComponents()
|
||||
{
|
||||
if (app(Guard::class)->check()) {
|
||||
$components = Component::whereRaw('1 = 1');
|
||||
$components = Component::query();
|
||||
} else {
|
||||
$components = Component::enabled();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user