mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
#4452 [evdepismis-theme] Create theme
This commit is contained in:
parent
963d489b0f
commit
d1a676b409
@ -51,6 +51,12 @@ class AjaxController extends PublicController
|
|||||||
$id = explode(',', $this->request->id);
|
$id = explode(',', $this->request->id);
|
||||||
$query = $this->cityRepository->getModel()->whereIn('parent_country_id', $id);
|
$query = $this->cityRepository->getModel()->whereIn('parent_country_id', $id);
|
||||||
|
|
||||||
|
if ($this->request->search) {
|
||||||
|
$query->where('name', 'like', '%' . $this->request->search . '%');
|
||||||
|
}
|
||||||
|
|
||||||
|
$query->get();
|
||||||
|
|
||||||
return $this->queryOrder($query, $this->cityRepository);
|
return $this->queryOrder($query, $this->cityRepository);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user