python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to get a collection based on column from another collection?
Let's say I have a collection of Cars and a collection of Accidents. Wherein the Accidents collection, there is a column car_id, which specifies what car has had an accident. What would be a fix to th...
Masofke
Votes: 0
Answers: 2
If Laravel collection has more than 1000 items the hasMany relationship collections are dissapearing
I have a Laravel query:
$var = Model::with(['rel1','rel2.1','rel2.2','rel2.3','rel3','rel4'])
->whereBetween('datum', [$start, $end])
->get();
If $var has more than 1000 items the hasMany relat...
Zsolti
Votes: 0
Answers: 0
Laravel groupBy in collection not working
I am trying to group the result with the status name inside. I am not doing groupBy after collection because I am using resource to return data, there are some logic inside resource. Grouping data bef...
fanaliya
Votes: 0
Answers: 1
Apply conditions using closure on Laravel Model collection
I am using Laravel Model collection and want to filter the records
in the first statement, I am checking that I only check the ends when it's has some date otherwise doesn't compare the value.
How to ...

Hadayat Niazi
Votes: 0
Answers: 2