getModel(); $filter = $this->getModelFilter(); $query = $this->query(); if ($this->withRelationships) { $query->with($this->withRelationships); } if ($filter) { $query->filter(request()->input(), $filter); } return $query->orderBy('place_id')->sort(); } public function resloveData($data, $model = null) { $place = data_get($data, 'place_id'); if ($place) { $data['path'] = Keyword::where('id', $place)->value('path') . $place. '-'; } return $data; } }