File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,21 @@ trait JsonQueriable
42
42
*/
43
43
protected $ _rulesMap = [
44
44
'= ' => 'equal ' ,
45
+ 'eq ' => 'equal ' ,
45
46
'== ' => 'exactEqual ' ,
47
+ 'seq ' => 'exactEqual ' ,
46
48
'!= ' => 'notEqual ' ,
49
+ 'neq ' => 'notEqual ' ,
47
50
'!== ' => 'notExactEqual ' ,
51
+ 'sneq ' => 'notExactEqual ' ,
48
52
'> ' => 'greater ' ,
53
+ 'gt ' => 'greater ' ,
49
54
'< ' => 'less ' ,
55
+ 'lt ' => 'less ' ,
50
56
'>= ' => 'greaterEqual ' ,
57
+ 'gte ' => 'greaterEqual ' ,
51
58
'<= ' => 'lessEqual ' ,
59
+ 'lte ' => 'lessEqual ' ,
52
60
'in ' => 'in ' ,
53
61
'notin ' => 'notIn ' ,
54
62
'null ' => 'null ' ,
Original file line number Diff line number Diff line change @@ -73,6 +73,18 @@ public function from($node = null)
73
73
return $ this ;
74
74
}
75
75
76
+ /**
77
+ * Alias of from() method
78
+ *
79
+ * @param null $node
80
+ * @return $this
81
+ * @throws NullValueException
82
+ */
83
+ public function at ($ node = null )
84
+ {
85
+ return $ this ->from ($ node );
86
+ }
87
+
76
88
/**
77
89
* getting prepared data
78
90
*
@@ -340,7 +352,7 @@ public function nth($index, $object = true)
340
352
* @return object|array|null
341
353
* @throws ConditionNotAllowedException
342
354
*/
343
- public function sortAs ($ column , $ order = 'asc ' )
355
+ public function sortBy ($ column , $ order = 'asc ' )
344
356
{
345
357
$ this ->prepare ();
346
358
You can’t perform that action at this time.
0 commit comments