This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
site-base/app/Models/Country.php

26 lines
379 B
PHP
Raw Permalink Normal View History

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