Level 102
https://laravel.com/docs/9.x/eloquent-relationships#querying-relationship-existence
FITSOA::where('status',1)->with('developer')->has('developer')->get()
2 likes
Summer Sale! All accounts are 50% off this week.
So I have a simple query here: $query_fitsoa = FITSOA::where('status',1)->with('developer')->get();
my goal is to skip the FITSOA and not include in the query if 'developer' is empty/null.
https://laravel.com/docs/9.x/eloquent-relationships#querying-relationship-existence
FITSOA::where('status',1)->with('developer')->has('developer')->get()
Please or to participate in this conversation.