Support the ongoing development of Laravel.io →

LarryEitel

Joined 9 Jul 2014

Statistics

Threads 2
Replies 5
Solutions 0
Articles 0

Is it possible to build an Eloquent query version of this SQL query?

Even if it included some Raw elements. :) Select concat(places.path, child_places.id, '/') as p...

0 Likes
4 Replies

How to setup Eloquent Models for self-joins.

I have a Contact(contacts) Model. I have a pivot Model ContactContact(contact_contact). I am trying...

0 Likes
6 Replies
replied 8 years ago

Is it possible to build an Eloquent query version of this SQL query?

For anyone following along, this Laracast provides some valuable insights: https://laracasts.com/ser...

0 Likes
replied 8 years ago

Is it possible to build an Eloquent query version of this SQL query?

jimgwhit said: You do know that eloquent queries are really a short-cut right? At run time they are...

0 Likes
replied 8 years ago

How to setup Eloquent Models for self-joins.

Thank you @rickshawhobo, withPivot put me on the right track. It's late now, but once I clean things...

0 Likes
replied 8 years ago

How to setup Eloquent Models for self-joins.

rickshawhobo said: I think your problem is the ContactContact model. I'm not sure why you need it,...

0 Likes
replied 8 years ago

How to setup Eloquent Models for self-joins.

@jimgwhit Yes, in fact I have many-to-many tagging working.

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.