*/ protected function casts(): array { return [ 'deleted_at' => 'datetime', ]; } /** * @return BelongsTo */ public function country(): BelongsTo { return $this->BelongsTo(Country::class, 'country_id', 'id'); } /** * @return HasMany */ public function rates(): HasMany { return $this->hasMany(CurrencyRate::class, 'currency_id'); } }