This controller handles all actions related to Custom Asset Fields for the Snipe-IT Asset Management application. More...

Public Member Functions | |
index () | |
Returns a view with a listing of custom fields. More... | |
create () | |
Returns a view with a form for creating a new custom fieldset. More... | |
store () | |
Validates and stores a new custom fieldset. More... | |
associate ($id) | |
Associate the custom field with a custom fieldset. More... | |
createField () | |
Returns a view with a form to create a new custom field. More... | |
storeField () | |
Validates and stores a new custom field. More... | |
deleteField ($field_id) | |
Delete a custom field. More... | |
show ($id) | |
Validates and stores a new custom field. More... | |
edit ($id) | |
What the actual fuck, Brady? More... | |
update ($id) | |
GET IN THE SEA BRADY. More... | |
destroy ($id) | |
Validates a custom fieldset and then deletes if it has no models associated. More... | |
Detailed Description
This controller handles all actions related to Custom Asset Fields for the Snipe-IT Asset Management application.
- Todo:
Improve documentation here.
Check for raw DB queries and try to convert them to query builder statements
- Version
- v2.0
Definition at line 24 of file CustomFieldsController.php.
Member Function Documentation
App\Http\Controllers\CustomFieldsController::associate | ( | $id | ) |
Associate the custom field with a custom fieldset.
- Since
- [v1.8]
- Returns
- View
Definition at line 86 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::create | ( | ) |
Returns a view with a form for creating a new custom fieldset.
- Since
- [v1.8]
- Returns
- View
Definition at line 52 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::createField | ( | ) |
Returns a view with a form to create a new custom field.
- Since
- [v1.8]
- Returns
- View
Definition at line 111 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::deleteField | ( | $field_id | ) |
Delete a custom field.
- Since
- [v1.8]
- Returns
- Redirect
Definition at line 157 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::destroy | ( | $id | ) |
Validates a custom fieldset and then deletes if it has no models associated.
- Parameters
-
int $id
- Since
- [v1.8]
- Returns
- View
Definition at line 240 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::edit | ( | $id | ) |
What the actual fuck, Brady?
- Todo:
- Uhh, build this?
- Parameters
-
int $id
- Since
- [v1.8]
- Returns
- Fuckall
Definition at line 211 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::index | ( | ) |
Returns a view with a listing of custom fields.
- Since
- [v1.8]
- Returns
- View
Definition at line 34 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::show | ( | $id | ) |
Validates and stores a new custom field.
- Parameters
-
int $id
- Since
- [v1.8]
- Returns
- View
Definition at line 177 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::store | ( | ) |
Validates and stores a new custom fieldset.
- Since
- [v1.8]
- Returns
- Redirect
Definition at line 66 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::storeField | ( | ) |
Validates and stores a new custom field.
- Since
- [v1.8]
- Returns
- Redirect
Definition at line 125 of file CustomFieldsController.php.
App\Http\Controllers\CustomFieldsController::update | ( | $id | ) |
GET IN THE SEA BRADY.
- Todo:
- Uhh, build this too?
- Parameters
-
int $id
- Since
- [v1.8]
- Returns
- Fuckall
Definition at line 226 of file CustomFieldsController.php.
The documentation for this class was generated from the following file: