Have you read the docs on query builder, it has examples.
Nov 18, 2015
9
Level 1
Let Join Column names
Hi All.
Does anyone know how to deal with Left Joins and column names that are returned?
i.e i have an left join, both tables have the column name, title. I was hoping eloquent would return table1.title and table2.title, but it doesn't, it simply returns title and therefore overwrites the other in the returned array.
Can I force eloquent to return the table names in the return results?
Level 1
@byronsmith I'm not sure you can do that or not. I use 'as' to specify the conflicted columns.
1 like
Please or to participate in this conversation.