what has pics ? the company or the project?
If you leave that bit out, do you get projects from the right type of companies?.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
how can i find company project that doesnt have any pics(person in charge) based on their category name yet ? am i doing it correctly?
$project = CompanyProject::whereHas('company', function ($query) use ($setting_industry){
$query->where('category',$setting_industry->name);
})->whereDoesntHave('pics')->where('is_approved',1)->first();
Please or to participate in this conversation.