snipe-it/app/Http/Controllers
Daniel Meltzer 44683c784f Importer: Add License Importer and refactor (#3143)
* Major code simplification of the importers.

Move towards using Model::fill and Model::update rather than reinventing
the wheel.  This makes the updating/creating logic a lot clearer, and
allows for the deletion of a lot of code.  Also allows for supporting of
more fields in the future really easily.

* Cleanup constructors and use setters instead.

* Set the LC_MONETARY locale, and use it to strip currency symbols in Helper::parseFloat()

* Move licenseseat creation/deletion logic into an event handler on the model rather than the controller.

* Move the logging of parsed values to array_smart_fetch rather than writing it out everywhere

* Move to storing dates as carbon rather than strings.  Allows for the parsing of more arbitrary strings from the importer

* Add a license importer with support for checking out to users or assets.

* Make a directory for sample/mock import csvs and populate it

* Adjust how we store/retrieve dates to fix some issues the tests found.
2017-01-10 16:19:18 -08:00
..
Auth Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
AccessoriesController.php Fix some accessory sorting (#3108) 2016-12-29 15:50:18 -08:00
ActionlogController.php Discussion: Moving to policies for controller based authorization (#3080) 2016-12-19 11:04:28 -08:00
AssetMaintenancesController.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
AssetModelsController.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
AssetsController.php Component Importer and various Importer Fixes (#3132) 2017-01-05 15:45:12 -08:00
CategoriesController.php Port more assignedUser to assignedTo. 2016-12-29 09:31:16 -05:00
CompaniesController.php Cleanup controller escaping (#3084) 2016-12-19 22:00:50 -08:00
ComponentsController.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
ConsumablesController.php Notification rework (#3103) 2016-12-26 15:19:04 -08:00
Controller.php Updated docblocks 2016-04-07 13:21:09 -07:00
CustomFieldsController.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
CustomFieldsetsController.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
DashboardController.php Fixes #2448 - redirect to intended page 2016-10-29 07:32:48 -07:00
DepreciationsController.php Add presenters for models. (#3098) 2016-12-23 17:52:00 -08:00
GroupsController.php Cleanup controller escaping (#3084) 2016-12-19 22:00:50 -08:00
LicensesController.php Importer: Add License Importer and refactor (#3143) 2017-01-10 16:19:18 -08:00
LocationsController.php Move sanitization of input to the model attribute setters. This cleans up a lot of checks in the various controller methods and ensures data will be set in the model accurately regardless of where it's set. Add unit tests for these methods (#3102) 2016-12-26 15:17:46 -08:00
ManufacturersController.php Merge branch 'checkout-to-things-v1' of https://github.com/dmeltzer/snipe-it into dmeltzer-checkout-to-things-v1 2016-12-29 16:20:17 -08:00
ProfileController.php Cleanup controller escaping (#3084) 2016-12-19 22:00:50 -08:00
ReportsController.php Present assetlogs (#3112) 2016-12-29 22:23:36 -08:00
SettingsController.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
StatuslabelsController.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
SuppliersController.php Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
UsersController.php Merge branch 'checkout-to-things-v1' of https://github.com/dmeltzer/snipe-it into dmeltzer-checkout-to-things-v1 2016-12-29 16:20:17 -08:00
ViewAssetsController.php Merge branch 'checkout-to-things-v1' of https://github.com/dmeltzer/snipe-it into dmeltzer-checkout-to-things-v1 2016-12-29 16:20:17 -08:00