https://laravel.com/docs/9.x/eloquent-relationships#querying-relationship-existence
FITSOA::where('status',1)->with('developer')->has('developer')->get()
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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.