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