Support the ongoing development of Laravel.io →
bbashy

bbashy

Joined 19 Aug 2014

Statistics

Threads 0
Replies 12
Solutions 0
Articles 0

bbashy has not posted any threads yet

replied 11 years ago

Should i make more use of the models?

Maybe not much difference for that query but to me, the model version looks cleaner Vehicle::with('c...

0 Likes
replied 11 years ago

->get(); and foreach

Foreach is when you want to do something for every row that's returned (without using a break etc)....

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.