'array', 'bank' => 'array' ]; // protected $hidden = []; // protected $dates = []; /* |-------------------------------------------------------------------------- | FUNCTIONS |-------------------------------------------------------------------------- */ /* |-------------------------------------------------------------------------- | RELATIONS |-------------------------------------------------------------------------- */ public function profile() { return $this->morphTo(); } public function country(){ return $this->belongsTo(Country::class, 'country_id'); } public function account(){ return $this->hasMany(Client::class); } public function application(){ return $this->hasOne(Application::class); } public function clients(){ return $this->hasMany(Client::class); } /* |-------------------------------------------------------------------------- | SCOPES |-------------------------------------------------------------------------- */ /* |-------------------------------------------------------------------------- | ACCESSORS |-------------------------------------------------------------------------- */ /* |-------------------------------------------------------------------------- | MUTATORS |-------------------------------------------------------------------------- */ }