This commit is contained in:
vedatakd 2020-06-19 15:37:39 +03:00
parent d3f1584cc4
commit 336815e1e3

View File

@ -112,8 +112,8 @@ class AjaxController extends PublicController
{ {
if ($this->request->name) { if ($this->request->name) {
$slug = Str::slug($this->request->name, '_'); $slug = Str::slug($this->request->name, '_');
if ($city = $this->city_model->newQuery()->where('slug', 'LIKE', $slug . '%')->first()) { if ($city = $this-> city_model->newQuery()->where('slug', 'LIKE', $slug . '%')->first()) {
return ['success' => true, 'link' => route('visiosoft.module.advs::list') . '?city[]=' . $city->id]; return ['success' => true, 'city' => $city];
} else { } else {
return ['success' => false]; return ['success' => false];
} }