Ejemplo n.º 1
0
 /**
  * Display a listing of billers
  *
  * @return Response
  */
 public function index()
 {
     $user = Auth::user()->id;
     // Grab all the user billers
     $billers = $this->biller->where('user_id', $user)->get();
     //Include  deleted billers
     if (Input::get('withTrashed')) {
     } else {
         if (Input::get('onlyTrashed')) {
             $billers = $this->biller->onlyTrashed()->where('user_id', $user)->get();
         }
     }
     return View::make('billers.index', compact('billers'));
 }