I have set up a Polymorphic relationship as follows: class Charge extends Model { public functi...
I'm building a site concerning nightclubs, events and booths - the idea is a user can book booths fo...
I am building a site which allows fitness instructors to publish a timetable of classes they teach....
I am doing something simple like the following: // Controller $activities = Activity::all(); $activi...
I have written some code that allows the user to filter a collection of activities by certain attrib...
If anyone is interested I found the solution here (although I had to modify it slightly) https://lar...
Also, as a side note, whenever I do something like $activities = Activity::paginate(10); dd($activit...
by the way for anyone looking in I had to add ->get() onto the end of popolla's query otherwise t...
cheers popolla your suggestion worked! maybe pushing it here but is there any way to add in another...
The Laravel portal for problem solving, knowledge sharing and community building.