25 lines
470 B
PHP
25 lines
470 B
PHP
<?php
|
|
|
|
class LicenseSeat extends Elegant
|
|
{
|
|
protected $guarded = 'id';
|
|
protected $table = 'license_seats';
|
|
protected $softDelete = true;
|
|
|
|
public function license()
|
|
{
|
|
return $this->belongsTo('License','license_id');
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('User','assigned_to')->withTrashed();
|
|
}
|
|
|
|
public function asset()
|
|
{
|
|
return $this->belongsTo('Asset','asset_id')->withTrashed();
|
|
}
|
|
|
|
}
|