mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
This commit is contained in:
parent
d3f1584cc4
commit
336815e1e3
@ -112,8 +112,8 @@ class AjaxController extends PublicController
|
||||
{
|
||||
if ($this->request->name) {
|
||||
$slug = Str::slug($this->request->name, '_');
|
||||
if ($city = $this->city_model->newQuery()->where('slug', 'LIKE', $slug . '%')->first()) {
|
||||
return ['success' => true, 'link' => route('visiosoft.module.advs::list') . '?city[]=' . $city->id];
|
||||
if ($city = $this-> city_model->newQuery()->where('slug', 'LIKE', $slug . '%')->first()) {
|
||||
return ['success' => true, 'city' => $city];
|
||||
} else {
|
||||
return ['success' => false];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user