mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-20 04:43:58 +00:00
-by default select active status
This commit is contained in:
@@ -36,11 +36,15 @@ class EntitySignatureModule extends BaseController
|
||||
$status = $request->get('status', []);
|
||||
$page = $request->get('page', null);
|
||||
$limit = $request->get('limit', 10);
|
||||
|
||||
$status_default[] = config('constants.entity.status.active');
|
||||
|
||||
$query = EntitySignature::query();
|
||||
|
||||
if (!empty($status) > 0) {
|
||||
$query->whereIn('status', $status);
|
||||
}else{
|
||||
$query->whereIn('status', $status_default);
|
||||
}
|
||||
|
||||
$user_id = Auth::guard('user-api')->user()->id;
|
||||
|
||||
Reference in New Issue
Block a user