Model for Categories. More...
Public Member Functions | |
| has_models () | |
| accessories () | |
| consumables () | |
| components () | |
| itemCount () | |
| assets () | |
| models () | |
| getEula () | |
| scopeRequiresAcceptance ($query) | |
| scopeRequiresAcceptance More... | |
| scopeTextSearch ($query, $search) | |
| Query builder scope to search on text. More... | |
Public Attributes | |
| $rules | |
| Category validation rules. More... | |
Protected Attributes | |
| $dates = ['deleted_at'] | |
| $table = 'categories' | |
| $injectUniqueIdentifier = true | |
| $fillable = ['name','category_type'] | |
Detailed Description
Model for Categories.
Categories are a higher-level group than Asset Models, and handle things like whether or not to require acceptance from the user, whether or not to send a EULA to the user, etc.
- Version
- v1.0
Definition at line 16 of file Category.php.
Member Function Documentation
| App\Models\Category::accessories | ( | ) |
Definition at line 56 of file Category.php.
| App\Models\Category::assets | ( | ) |
Definition at line 86 of file Category.php.
| App\Models\Category::components | ( | ) |
Definition at line 66 of file Category.php.
| App\Models\Category::consumables | ( | ) |
Definition at line 61 of file Category.php.
| App\Models\Category::getEula | ( | ) |
Definition at line 96 of file Category.php.
| App\Models\Category::has_models | ( | ) |
Definition at line 51 of file Category.php.
| App\Models\Category::itemCount | ( | ) |
Definition at line 71 of file Category.php.
| App\Models\Category::models | ( | ) |
Definition at line 91 of file Category.php.
| App\Models\Category::scopeRequiresAcceptance | ( | $query | ) |
scopeRequiresAcceptance
- Parameters
-
$query
- Returns
- mixed
- Version
- v1.0
Definition at line 120 of file Category.php.
| App\Models\Category::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
Definition at line 134 of file Category.php.
Member Data Documentation
|
protected |
Definition at line 20 of file Category.php.
|
protected |
Definition at line 48 of file Category.php.
|
protected |
Definition at line 39 of file Category.php.
| App\Models\Category::$rules |
Category validation rules.
Definition at line 26 of file Category.php.
|
protected |
Definition at line 21 of file Category.php.
The documentation for this class was generated from the following file:
