Support the ongoing development of Laravel.io →
posted 10 years ago
Database

Lets say we have some tables and I need to make a join query for half of the requests to table A. Is there any way that I can make a model that makes the join or some other queries for every request so that I dont need to write the same thing again and again in the controller.

Last updated 3 years ago.
0

Thats what i was looking for. Thanks :)

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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.

© 2025 Laravel.io - All rights reserved.