Beispiel #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function filterByStatus(Adstatus $adstatus)
 {
     $ads = Ad::whereAdstatusId($adstatus->id)->with('content')->recents()->withTrashed()->search(Request::get('q'))->paginate(20);
     return view_backend('ad.index', compact('ads', 'adstatus'));
 }