gregorip02 / restql

📦 A data resolution package for your Laravel models.
https://github.com/gregorip02/restql/wiki
GNU General Public License v3.0
128 stars 6 forks source link

[1.1.0] New clausules added #3

Closed gregorip02 closed 4 years ago

gregorip02 commented 4 years ago

Changelog

The following clauses were added.

  1. SortClausule.php: to add the orderBy clause to the query. The parameters accepted by this clause can be a sequential array of two attributes (one as a minimum) that indicates the name of the column and the last one the ordering address (desc / asc) or an object with the properties column anddirection.

  2. WhereClausule.php: to add the where clause to the query. This clause can receive an associative array of minimum 2 elements that represent the name of the column and the value, in this way the operator of the method where is sent as null. You can also send an object by explicitly indicating the column,operator and value values.

Add new exception for invalid clausule arguments

Docker integration for test of different laravel versions.