osb/app/Models/Country.php
Deon George 33658e37a3
WIP: Standard backend theme page and login
Signed-off-by: Deon George <deon@leenooks.net>
2017-12-12 16:28:49 +11:00

26 lines
379 B
PHP

<?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');
}
}