mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -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);
|
||||
$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);
|
||||
}
|
||||
}
|
||||
@ -154,4 +160,4 @@ class AjaxController extends PublicController
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user