App\Models\ConsumableAssignment Class Reference
Inheritance diagram for App\Models\ConsumableAssignment:

Public Member Functions

 consumable ()
 
 user ()
 
 admin ()
 

Protected Attributes

 $dates = ['deleted_at']
 
 $table = 'consumables_users'
 

Detailed Description

Definition at line 6 of file ConsumableAssignment.php.

Member Function Documentation

App\Models\ConsumableAssignment::admin ( )

Definition at line 23 of file ConsumableAssignment.php.

24  {
25  return $this->belongsTo('\App\Models\User', 'user_id');
26  }
App\Models\ConsumableAssignment::consumable ( )

Definition at line 13 of file ConsumableAssignment.php.

14  {
15  return $this->belongsTo('\App\Models\Consumable');
16  }
App\Models\ConsumableAssignment::user ( )

Definition at line 18 of file ConsumableAssignment.php.

19  {
20  return $this->belongsTo('\App\Models\User', 'assigned_to');
21  }

Member Data Documentation

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

Definition at line 10 of file ConsumableAssignment.php.

App\Models\ConsumableAssignment::$table = 'consumables_users'
protected

Definition at line 11 of file ConsumableAssignment.php.


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