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