Support the ongoing development of Laravel.io →
Cipa

Cipa

Joined 11 Dec 2017

Statistics

Threads 8
Replies 3
Solutions 0
Articles 0
posted 7 years ago

How do I integrate a custom sql into a model

Hi, I am using Eloquent with Codeigniter, and I have a model that has multiple one to many and many...

0 Likes
1 Replies

Can I add a where condition on the belongsToMany join?

Hi, having this relation public function programs() { return $this->belongsToMany...

0 Likes
0 Replies
posted 8 years ago

count from 2 3 relations down

Hi, Has anyone managed to count data from 2 tables down a relationship Normally you would do it with...

0 Likes
1 Replies
replied 7 years ago

Eloquent hasMany with multiple foreign keys and where

I am interested in this as well. Any updates? Thank you

0 Likes
replied 7 years ago

How do I integrate a custom sql into a model

Probably in my case is best to use CI to run the query $reports = $this->db->query($sql)->r...

0 Likes
replied 8 years ago

count from 2 3 relations down

Something like this seems to work, not final though public function otherDistrictCountRelation() {...

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.