/** * Display a listing of the resource. * GET /challenges * * @return Response */ public function index() { $challenges = Challenge::all(); return View::make('backend.challenge.index')->with(compact('challenges')); }