2017-12-12 05:28:49 +00:00
|
|
|
<?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 */
|
|
|
|
|
2017-12-12 05:28:49 +00:00
|
|
|
/**
|
|
|
|
* The currency this country belongs to
|
|
|
|
*/
|
|
|
|
public function currency()
|
|
|
|
{
|
2018-05-20 12:53:14 +00:00
|
|
|
return $this->belongsTo(Currency::class);
|
2017-12-12 05:28:49 +00:00
|
|
|
}
|
|
|
|
|
2019-07-04 04:55:05 +00:00
|
|
|
public function taxes()
|
|
|
|
{
|
|
|
|
return $this->hasMany(Tax::class);
|
|
|
|
}
|
2017-12-12 05:28:49 +00:00
|
|
|
}
|