---
title: "Discussion on \"Another way to prepend table names to columns in Eloquent queries\" | Hashnode"
description: "Discussion on \"Another way to prepend table names to columns in Eloquent queries\". TLDR: use qualifyColumn() and qualifyColumns()"
url: "https://hashnode.com/posts/another-way-to-prepend-table-names-to-columns-in-eloquent-queries/63bdb69a0360c7580f91ce6e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Another way to prepend table names to columns in Eloquent queries](https://jaspertey.com/another-way-to-prepend-table-names-to-columns-in-eloquent-queries?utm_source=hashnode&utm_medium=feed)

TLDR: use qualifyColumn() and qualifyColumns()

Jan 10, 2023 · 2 min read · jaspertey.com  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#eloquent](https://hashnode.com/tag/eloquent)
-   [#php](https://hashnode.com/tag/php)

## Written by

[Jasper Tey](https://hashnode.com/@JasperTey)

@JasperTey · Guelph, Ontario, Canada

  
[View profile](https://hashnode.com/@JasperTey)

Full Stack Enthusiast (PHP, Laravel, Vue)

I am a computer science and full stack enthusiast obsessed with building applications for the modern web. I'm here to write about the things I encounter as a full stack developer. I've been building web apps since ~2001, but only decided recently in the beginning of 2023 that I want to start writing. So here it goes!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
