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

38 lines
561 B
PHP
Raw Normal View History

2019-03-26 05:46:08 +01:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class CompanyToken extends BaseModel
{
/**
* @var bool
*/
public $timestamps = false;
2019-03-26 22:17:28 +01:00
protected $guarded = [
'id',
];
2019-03-26 05:46:08 +01:00
2019-04-25 12:21:07 +02:00
protected $with = [
// 'user',
// 'company',
];
2019-03-26 05:46:08 +01:00
public function account()
{
return $this->belongsTo(Account::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
public function company()
{
return $this->belongsTo(Company::class);
}
}