Support the ongoing development of Laravel.io →
posted 5 years ago
Eloquent

HI sorry for english im newbe to laravel ,im tryng to change a code wrte from another developer. I have a query :

$newsletters = Newsletter::orderBy('id', 'DESC') ->with(['app', 'category']) ;

I must create a join on app.user_id=user.id to add a query WHERE user_status=1

How can i do this ?

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.