snipe-it/app/Http/Controllers/Api
Till Deeke baa3be728d Refactoring: A nicer and easier syntax for searching models (#5841)
* Adds the ability to search by dates

Adding extra „where“-conditions to the „TextSearch“ queries, allowing the users to search by dates

* Adds missing dates to $dates in models

* Removes duplicated „where“ conditions

* Adds the Searchable trait to models, defining the searchable attributes and relations

* Removes the old text search methods

* Adds back additional conditions to the search

These conditions could not be modeled in the „attributes“ or „relations“, so we include them here

* Removes unnecessary check for the deleted_at attribute

* Fixes typo in comments

* suppresses errors from Codacy

We can safely ignore the error codacy is throwing here, since this method is a standin/noop for models who need to implement more advanced searches
2018-07-16 14:13:07 -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 Fixing authorization issues (#5807) 2018-07-12 18:28:02 -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 Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
ConsumablesController.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -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 Fixing authorization issues (#5807) 2018-07-12 18:28:02 -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 Fixing authorization issues (#5807) 2018-07-12 18:28:02 -07:00