Support the ongoing development of Laravel.io →
JoolsMcFly

JoolsMcFly

Joined 22 Apr 2014

Statistics

Threads 1
Replies 19
Solutions 2
Articles 0

Best way to link a model to two other models

Hi guys, I'm trying to find the best way to implement the following. I have a Client of a given Sect...

0 Likes
2 Replies
replied 11 years ago

Relationship with template tables

You could store additional params in an "extra" column in JSON format if you don't need to...

0 Likes
replied 11 years ago

Scope functions passing $variable problem

Your problem is here: $days1 = implode(',', Input::get('days')); This gets converted to string &quo...

0 Likes
Solved
replied 11 years ago

datediff for mysql using query builder

Try [...] 'patient.note', 'email', DB::raw('DATEDIFF(CAST(patient.updated_time as char), NOW()) AS d...

0 Likes
replied 11 years ago

Relationship with template tables

Not sure I fully understand what you're after (or how things are stored tbh) but I don't think havin...

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.