laravel single record has many relatioship how to apply condition code example
Example: laravel where condition on relationship
App\Request::where('id',4)
->whereHas('quotes', function ($query) {
$query->where('status','=','3');
})
->with('quotes','sourceTable','destinationTable')
->get();