You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the problem, where I need to groupBy an eloquent field that's being casted as a boolean. An expected behaviour would be to allow groupBy for boolean field where true stands for 1 and false stands for 0. Also in a regular PHP $results[true] = 'value' results to $results[1] = 'value'.
Description:
I have the problem, where I need to groupBy an eloquent field that's being casted as a boolean. An expected behaviour would be to allow groupBy for boolean field where
true stands for 1
andfalse stands for 0
. Also in a regular PHP$results[true] = 'value'
results to$results[1] = 'value'
.Steps To Reproduce:
Eloquent model:
The following code throws an error:
array_key_exists(): The first argument should be either a string or an integer
:I would be happy to make a PR for this.
The text was updated successfully, but these errors were encountered: