1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Models/CompanyToken.php
2019-05-01 12:23:13 +10:00

38 lines
557 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class CompanyToken extends Model
{
/**
* @var bool
*/
public $timestamps = false;
protected $guarded = [
'id',
];
protected $with = [
// 'user',
// 'company',
];
public function account()
{
return $this->belongsTo(Account::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
public function company()
{
return $this->belongsTo(Company::class);
}
}