snipe-it/app/Http
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
..
Controllers Refactoring: A nicer and easier syntax for searching models (#5841) 2018-07-16 14:13:07 -07:00
Middleware Disable broken tests (#5073) 2018-02-22 21:46:58 -08:00
Requests Feature: PostgreSQL support (#5642) 2018-07-12 18:24:43 -07:00
Traits Fix tests 2018-07-09 21:57:45 -07:00
Transformers Fixing #5773: Refactoring the "clearing" of select2 lists (#5839) 2018-07-16 14:10:54 -07:00
Kernel.php fix middleware priority: handle trusted proxies prior setup check 2018-07-05 15:36:59 -07:00