App\Models\LicenseSeat Class Reference
Inheritance diagram for App\Models\LicenseSeat:
App\Models\ICompanyableChild

Public Member Functions

 getCompanyableParents ()
 
 license ()
 
 user ()
 
 asset ()
 

Protected Attributes

 $dates = ['deleted_at']
 
 $guarded = 'id'
 
 $table = 'license_seats'
 

Detailed Description

Definition at line 7 of file LicenseSeat.php.

Member Function Documentation

App\Models\LicenseSeat::asset ( )

Definition at line 31 of file LicenseSeat.php.

32  {
33  return $this->belongsTo('\App\Models\Asset', 'asset_id')->withTrashed();
34  }
App\Models\LicenseSeat::getCompanyableParents ( )

Implements App\Models\ICompanyableChild.

Definition at line 16 of file LicenseSeat.php.

17  {
18  return ['asset', 'license'];
19  }
App\Models\LicenseSeat::license ( )

Definition at line 21 of file LicenseSeat.php.

22  {
23  return $this->belongsTo('\App\Models\License', 'license_id');
24  }
App\Models\LicenseSeat::user ( )

Definition at line 26 of file LicenseSeat.php.

27  {
28  return $this->belongsTo('\App\Models\User', 'assigned_to')->withTrashed();
29  }

Member Data Documentation

App\Models\LicenseSeat::$dates = ['deleted_at']
protected

Definition at line 12 of file LicenseSeat.php.

App\Models\LicenseSeat::$guarded = 'id'
protected

Definition at line 13 of file LicenseSeat.php.

App\Models\LicenseSeat::$table = 'license_seats'
protected

Definition at line 14 of file LicenseSeat.php.


The documentation for this class was generated from the following file: