Support the ongoing development of Laravel.io →
rickshawhobo

rickshawhobo

Joined 17 Oct 2014

Statistics

Threads 7
Replies 71
Solutions 11
Articles 0
posted 10 years ago

the chunk method

The chunk method is starting to piss me off. Anyone have trouble with it? Two things: first it doesn...

0 Likes
0 Replies
posted 10 years ago

Found an interesting bug

I found an interesting bug which I'll share here. Hopefully it will save someone time. Consider this...

0 Likes
0 Replies
posted 10 years ago

How to sort by pivoted table in a many-to-many

Here's my problem. I have two models with a pivot So say ModelA belongsToMany ModelB ModelB belongsT...

0 Likes
0 Replies
posted 10 years ago

pivot hell

I'm in pivot hell. Please help. I have 3 tables I need to pivot and can't figure out a clean way to...

0 Likes
2 Replies
Solved
posted 10 years ago

Pagination does not work with eager loading

So here is the scenario You can paginate a set like this ~~ $books = Books::where('price', 1)->pa...

0 Likes
3 Replies
replied 10 years ago

Lazy property in Eloquent models.

Do you mean a model accessor? http://laravel.com/docs/4.2/eloquent#accessors-and-mutators

0 Likes
Solved
replied 10 years ago

Events not firing on inherited model. How can I fix this?

Off topic but I prefer to use observers instead of the boot method http://laravel.com/docs/4.2/eloqu...

0 Likes
replied 10 years ago

belongsTo and HasMany relationship

foreach ($users as $user) { $profileImage = $user->images()->where('isprofile', 1)->first(...

0 Likes
replied 10 years ago

belongsTo and HasMany relationship

Do you mean something like this? $users = Users::whereHas('images', function ($q) { $q->where('i...

0 Likes
replied 10 years ago

Trying to collect data from a many-to-many relationship

That's fine. it was just an example. it should still work the same way

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.