hasMany(Resume::class, 'uid', 'uid'); } public function members() { return $this->belongsTo(Member::class, 'uid'); } public function toSearchableArray() { return [ 'realname' => $this->realname, 'mobile' => $this->mobile, 'email' => $this->email, 'education' => $this->education, 'school' => $this->school, 'pro' => $this->pro, 'address' => $this->address, 'country' => $this->country, 'company' => $this->company, 'job' => $this->job, 'trade_type' => $this->trade_type, 'speciality' => $this->speciality ]; } }