osb/app/Models/Country.php
2021-12-20 17:24:31 +11:00

25 lines
348 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Country extends Model
{
public $timestamps = FALSE;
/* RELATIONS */
/**
* The currency this country belongs to
*/
public function currency()
{
return $this->belongsTo(Currency::class);
}
public function taxes()
{
return $this->hasMany(Tax::class);
}
}