*/ protected $fillable = [ 'company_id', 'reference', 'bank_name', 'holder_name', 'account_no', 'bank_branch', 'swift', 'snap', 'type', 'country_id', 'created_by', 'creator_type', ]; protected $table = 'banks'; /** * @return \Illuminate\Database\Eloquent\Relations\HasOne **/ public function country(): HasOne { return $this->hasOne(Country::class, 'country_id', 'id'); } /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo **/ public function company(): BelongsTo { return $this->BelongsTo(Company::class, 'company_id', 'id'); } /** * @return HasMany */ public function recipientTransactions(): HasMany { return $this->HasMany(Transaction::class, 'recipient_bank_account_id'); } /** * @return MorphMany */ public function attributesKVP(): MorphMany { return $this->morphMany(KeyValuePair::class, 'owner'); } }