123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace App\Models;
- use App\Search\Traits\ShuoboSearchable;
- use Illuminate\Database\Eloquent\SoftDeletes;
- use Illuminate\Database\Eloquent\Model;
- class MemberShuobo extends Model
- {
- use SoftDeletes,ShuoboSearchable;
- protected $table = 'members_shuobo';
- protected $guarded = [];
- public function resumes()
- {
- return $this->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
- ];
- }
- }
|