Support the ongoing development of Laravel.io →

lainga9

Joined 12 Feb 2014

Statistics

Threads 7
Replies 10
Solutions 1
Articles 0
posted 9 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 9 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 10 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 10 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 10 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 9 years ago

Scope to check for existence of a relationship

Thanks for your reply - you're exactly right. I did in fact try this method but it didn't seem to be...

0 Likes
replied 10 years ago

Eloquent relationship containing where and orWhere constraints?

Yeah I could code it into the controller but I make this call so many times I'm going to be repeatin...

0 Likes
replied 10 years ago

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

Ah rite ok I understand. Thanks for all your help!

0 Likes
replied 10 years ago

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

iClosedz said: Did you try $activities = Paginator::make($activities, count($activities), 10); $ite...

0 Likes
replied 10 years ago

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

I've noticed a typo in the code I typed above - I actually use $activities = Paginator::make($activi...

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.

© 2024 Laravel.io - All rights reserved.