c c3 b3mo excluir modelos con datos de relaci c3 b3n de null

Solutions on MaxInterview for c c3 b3mo excluir modelos con datos de relaci c3 b3n de null by the best coders in the world

showing results for - "c c3 b3mo excluir modelos con datos de relaci c3 b3n de null"
Monica
28 Oct 2018
1Route::get('/offers', function(){
2    $offers = \App\Models\Issuers\Offer::with('offerStatus')->whereHas('offerStatus' , function ($offerStatus){
3        $offerStatus->whereIn('name',['live', 'suspended', 'teaser','open']);
4    })->get();
5    return view('layouts/frontend/offers/index', compact('offers'));
6});
7