having
Used to match the group method to filter data (usually aggregated conditions) from the results of the grouping.
Use
$builder->groupBy('user_id')->having('times', 3,'>')->get('getTable');
Pass the instructions
Method prototype
function having($havingProp, $havingValue = 'DBNULL', $operator = '=', $cond = 'AND')
-
$havingProp
condition -
$havingValue
value -
$operator string
Operator -
$cond string
Connection condition