Public Member Functions |
Static Public Member Functions |
Protected Attributes |
List of all members
App\Models\AssetMaintenance Class Reference
Model for Asset Maintenances. More...
Inheritance diagram for App\Models\AssetMaintenance:

Public Member Functions | |
getCompanyableParents () | |
asset () | |
asset Get asset for this improvement More... | |
supplier () | |
scopeDeleted ($query) | |
BEGIN QUERY SCOPESMore... | |
scopeTextSearch ($query, $search) | |
Query builder scope to search on text. More... | |
Static Public Member Functions | |
static | getImprovementOptions () |
getImprovementOptions More... | |
Protected Attributes | |
$dates = [ 'deleted_at' ] | |
$table = 'asset_maintenances' | |
$rules | |
Detailed Description
Member Function Documentation
App\Models\AssetMaintenance::asset | ( | ) |
asset Get asset for this improvement
- Returns
- mixed
- Version
- v1.0
Definition at line 66 of file AssetMaintenance.php.
App\Models\AssetMaintenance::getCompanyableParents | ( | ) |
Implements App\Models\ICompanyableChild.
Definition at line 36 of file AssetMaintenance.php.
|
static |
getImprovementOptions
- Returns
- array
- Version
- v1.0
Definition at line 48 of file AssetMaintenance.php.
52 Lang::get('admin/asset_maintenances/general.maintenance') => Lang::get('admin/asset_maintenances/general.maintenance'),
53 Lang::get('admin/asset_maintenances/general.repair') => Lang::get('admin/asset_maintenances/general.repair'),
App\Models\AssetMaintenance::scopeDeleted | ( | $query | ) |
BEGIN QUERY SCOPES
Query builder scope for Deleted assets
- Parameters
-
Illuminate\Database\Query\Builder $query Query builder instance
- Returns
- Illuminate Modified query builder
Definition at line 94 of file AssetMaintenance.php.
App\Models\AssetMaintenance::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 108 of file AssetMaintenance.php.
App\Models\AssetMaintenance::supplier | ( | ) |
Definition at line 73 of file AssetMaintenance.php.
Member Data Documentation
|
protected |
Definition at line 20 of file AssetMaintenance.php.
|
protected |
Initial value:
= [
'asset_id' => 'required|integer'
Definition at line 24 of file AssetMaintenance.php.
|
protected |
Definition at line 21 of file AssetMaintenance.php.
The documentation for this class was generated from the following file: