Support the ongoing development of Laravel.io →
lainga9

lainga9

Joined 12 Feb 2014

Statistics

Threads 7
Replies 10
Solutions 1
Articles 0
posted 10 years ago

Where clause on morphTo polymorphic relation?

I have set up a Polymorphic relationship as follows: class Charge extends Model { public functi...

0 Likes
0 Replies
posted 10 years ago

Scope to check for existence of a relationship

I'm building a site concerning nightclubs, events and booths - the idea is a user can book booths fo...

0 Likes
2 Replies
Solved
posted 11 years ago

Eloquent relationship containing where and orWhere constraints?

I am building a site which allows fitness instructors to publish a timetable of classes they teach....

0 Likes
2 Replies
posted 11 years ago

Paginator::make() returning so much data it crashes the browser!

I am doing something simple like the following: // Controller $activities = Activity::all(); $activi...

0 Likes
8 Replies
posted 11 years ago

Combining the use of pagination and filtering collections

I have written some code that allows the user to filter a collection of activities by certain attrib...

0 Likes
5 Replies
Solved
replied 11 years ago

Combining the use of pagination and filtering collections

If anyone is interested I found the solution here (although I had to modify it slightly) https://lar...

0 Likes
Solved
replied 11 years ago

Combining the use of pagination and filtering collections

Also, as a side note, whenever I do something like $activities = Activity::paginate(10); dd($activit...

0 Likes
replied 11 years ago

Chaining hasMany relationships

works perfectly - thanks a lot!

0 Likes
replied 11 years ago

Chaining hasMany relationships

by the way for anyone looking in I had to add ->get() onto the end of popolla's query otherwise t...

0 Likes
replied 11 years ago

Chaining hasMany relationships

cheers popolla your suggestion worked! maybe pushing it here but is there any way to add in another...

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.