snipe-it/app/Http/Controllers/Api
Daniel Meltzer 64d649be7f Monster: Cleanup/Refactor http controllers. (#5916)
* Extract a handlesimages trait to centralize logic for parsing/storing images on upload in create/edit methods.

* Use same image upload/layout in accessories as consum+components.

* Monster: Cleanup/Refactor http controllers.

This cleans up docblocks, pulls most non-crudy actions into their own
controllers, and does general cleanup/logic refactoring.  There /should/
be no functional changes, but we all know how should works..

Extract checkin/checkout functions to a separate controller for accessories.

Move controllers to subdirectory.

Cleanup AssetModelsController

Extract component checkin/checkout

Assorted cleanups/doc/formatting in controllers.

Refactor LicenseController.

Refactor UsersController

Update viewassetscontroller.

* Codacy cleanups

* More codacy cleanups.  Extract a LicenseCheckout Form request as well.

* A bit more refactor/cleaning of the license checkout method.

* Review Related Cleanups

* Fix most of the item_not_found translations.  In many cases, the
string being generated did not even use the id parameter.  Where it
does, pass it as id instead of as a different value.

* Remove some old $data arrays from when we manually sent emails from
the controllers.  This has been superseeded by the notification system
(yay!)

* Bugfix: Only log the checkin of an accessory if the checkin completes sucessfully.
2018-07-24 19:35:26 -07:00
..
AccessoriesController.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
AssetMaintenancesController.php Fixed #5151 - added asset tag to maintenances 2018-03-05 16:26:40 -08:00
AssetModelsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
AssetsController.php Monster: Cleanup/Refactor http controllers. (#5916) 2018-07-24 19:35:26 -07:00
CategoriesController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
CompaniesController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ComponentsController.php Fixed #5842 - added components to location detail view 2018-07-16 21:50:14 -07:00
ConsumablesController.php Monster: Cleanup/Refactor http controllers. (#5916) 2018-07-24 19:35:26 -07:00
CustomFieldsController.php Removes setting the encryption status on update (#5833) 2018-07-13 04:04:30 -07:00
CustomFieldsetsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
DepartmentsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
DepreciationsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
GroupsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ImportController.php Change duplicate header check to return 1-based header indices 2018-03-22 19:40:12 -07:00
LicensesController.php category_id not category_i (#5844) 2018-07-16 14:23:24 -07:00
LocationsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ManufacturersController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
ProfileController.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
ReportsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
SettingsController.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
StatuslabelsController.php Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00
SuppliersController.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
UsersController.php Add ID to the allowed sort fields in api/Users. (#5929) 2018-07-23 06:46:50 -07:00