예제 #1
0
 /**
  * Display a listing of the rejected ads.
  *
  * @return Response
  */
 public function getRejectedList()
 {
     $ads = Ad::whereRaw('uid = ? and status = ?', [Auth::user()->id, 2])->orderBy('created_at', 'desc')->paginate(10);
     return view('user.ad.rejectedlist')->withAds($ads);
 }
예제 #2
0
 /**
  * Display a listing of the rejected ads.
  *
  * @return Response
  */
 public function getRejectedList()
 {
     $ads = Ad::whereRaw('status = ?', [2])->orderBy('created_at', 'desc')->paginate(10);
     return view('admin.ad.rejectedlist')->withAds($ads);
 }