osb/app/Models/Country.php

25 lines
348 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Country extends Model
{
public $timestamps = FALSE;
2021-12-17 03:59:55 +00:00
/* RELATIONS */
/**
* The currency this country belongs to
*/
public function currency()
{
2018-05-20 12:53:14 +00:00
return $this->belongsTo(Currency::class);
}
public function taxes()
{
return $this->hasMany(Tax::class);
}
}