<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Country extends Model { protected $fillable=['iso2','iso3','name','dial_code','currency_code','is_active']; protected function casts():array{return ['is_active'=>'boolean'];} public function currency():BelongsTo{return $this->belongsTo(Currency::class,'currency_code','code');} }
