Open armzaazaazaa opened 6 years ago
public function awards()//*** { return $this->??????(ProjectAward::class,'project_id'); }
if (isset($request->award) && $request->award != "-1") { $projectsBu->whereHas('awards', function ($query) use ($request) { $query->where('id', $request->award); $projectsBu->whereHas('awards.awardDetail', function ($query) use ($request) { $query->where('award_id', $request->award); }); }
if (isset($request->award) && $request->award != "-1") { $projectsBu->whereHas('awards', function ($query) use ($request) { $query->where('id', $request->award); }); }