Another way to prepend table names to columns in Eloquent queries
When writing complex queries in Eloquent, you will more than likely encounter scenarios forcing you to prefix column references with the table name to handle SQL ambiguity, especially when joins are involved. Consider the following ways you might've ...
jaspertey.com2 min read