
Public Member Functions | |
admin () | |
consumableAssigments () | |
company () | |
location () | |
category () | |
assetlog () | |
Get action logs for this consumable. More... | |
users () | |
hasUsers () | |
requireAcceptance () | |
getEula () | |
numRemaining () | |
scopeTextSearch ($query, $search) | |
Query builder scope to search on text. More... | |
scopeOrderCategory ($query, $order) | |
Query builder scope to order on company. More... | |
scopeOrderLocation ($query, $order) | |
Query builder scope to order on company. More... | |
scopeOrderCompany ($query, $order) | |
Query builder scope to order on company. More... | |
Public Attributes | |
$rules | |
Category validation rules. More... | |
Protected Attributes | |
$dates = ['deleted_at'] | |
$table = 'consumables' | |
$injectUniqueIdentifier = true | |
$fillable = ['name','qty','company_id','category_id'] | |
Detailed Description
Definition at line 14 of file Consumable.php.
Member Function Documentation
App\Models\Consumable::admin | ( | ) |
Definition at line 52 of file Consumable.php.
App\Models\Consumable::assetlog | ( | ) |
Get action logs for this consumable.
Definition at line 80 of file Consumable.php.
App\Models\Consumable::category | ( | ) |
Definition at line 72 of file Consumable.php.
App\Models\Consumable::company | ( | ) |
Definition at line 62 of file Consumable.php.
App\Models\Consumable::consumableAssigments | ( | ) |
Definition at line 57 of file Consumable.php.
App\Models\Consumable::getEula | ( | ) |
Definition at line 102 of file Consumable.php.
App\Models\Consumable::hasUsers | ( | ) |
Definition at line 91 of file Consumable.php.
App\Models\Consumable::location | ( | ) |
Definition at line 67 of file Consumable.php.
App\Models\Consumable::numRemaining | ( | ) |
Definition at line 117 of file Consumable.php.
App\Models\Consumable::requireAcceptance | ( | ) |
Definition at line 97 of file Consumable.php.
App\Models\Consumable::scopeOrderCategory | ( | $query, | |
$order | |||
) |
Query builder scope to order on company.
- Parameters
-
Illuminate\Database\Query\Builder $query Query builder instance text $order Order
- Returns
- Illuminate Modified query builder
Definition at line 174 of file Consumable.php.
App\Models\Consumable::scopeOrderCompany | ( | $query, | |
$order | |||
) |
Query builder scope to order on company.
- Parameters
-
Illuminate\Database\Query\Builder $query Query builder instance text $order Order
- Returns
- Illuminate Modified query builder
Definition at line 201 of file Consumable.php.
App\Models\Consumable::scopeOrderLocation | ( | $query, | |
$order | |||
) |
Query builder scope to order on company.
- Parameters
-
Illuminate\Database\Query\Builder $query Query builder instance text $order Order
- Returns
- Illuminate Modified query builder
Definition at line 187 of file Consumable.php.
App\Models\Consumable::scopeTextSearch | ( | $query, | |
$search | |||
) |
Query builder scope to search on text.
- Parameters
-
Illuminate\Database\Query\Builder $query Query builder instance text $search Search term
- Returns
- Illuminate Modified query builder Query builder scope to search on text
- Parameters
-
Illuminate\Database\Query\Builder $query Query builder instance text $search Search term
- Returns
- Illuminate Modified query builder
Definition at line 141 of file Consumable.php.
App\Models\Consumable::users | ( | ) |
Definition at line 86 of file Consumable.php.
Member Data Documentation
|
protected |
Definition at line 19 of file Consumable.php.
|
protected |
Definition at line 49 of file Consumable.php.
|
protected |
Definition at line 41 of file Consumable.php.
App\Models\Consumable::$rules |
Category validation rules.
Definition at line 26 of file Consumable.php.
|
protected |
Definition at line 20 of file Consumable.php.
The documentation for this class was generated from the following file: