feat : driver
This commit is contained in:
@@ -81,7 +81,7 @@ class DriverService extends BaseService
|
||||
$query->where('name', 'like', "$name%");
|
||||
})
|
||||
->when($cityId > 0, function ($query) use ($cityId) {
|
||||
$query->whereIn('section_id', $this->adminSectionModel->getIdsByCityId($cityId));
|
||||
$query->where('city_id', $cityId);
|
||||
})
|
||||
->when($id = $this->request->input('query_driver_id'), function ($query) use ($id) {
|
||||
$query->where('id', $id);
|
||||
|
||||
Reference in New Issue
Block a user