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
AssetModelsController.php
AssetsController.php
CategoriesController.php
CompaniesController.php
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
DepartmentsController.php
DepreciationsController.php
GroupsController.php
ImportController.php
LicensesController.php
LocationsController.php
ManufacturersController.php
ProfileController.php
ReportsController.php
SettingsController.php
StatuslabelsController.php
SuppliersController.php Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
UsersController.php