mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
This commit is contained in:
parent
d3f1584cc4
commit
336815e1e3
@ -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];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user