Probably in my case is best to use CI to run the query
$reports = $this->db->query($sql)->result();
But would be nice is this could be moved inside the model some how
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.