osb/app/Models/Account.php

29 lines
450 B
PHP
Raw Normal View History

2018-07-06 06:57:49 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Account extends Model
{
protected $table = 'ab_account';
2018-07-13 04:53:44 +00:00
public $timestamps = FALSE;
/**
* Return the country the user belongs to
*/
public function country()
{
return $this->belongsTo(Country::class);
}
public function language()
{
return $this->belongsTo(Language::class);
}
public function user()
{
return $this->belongsTo(\App\User::class);
}
2018-07-06 06:57:49 +00:00
}