/**
  * Displays the user's previous draw.
  *
  * @param  int  $id
  * @return Response
  */
 public function prev($id)
 {
     //Get all data to be sent to the view
     $draw = new Draw();
     //Get current draw from the model
     $currentDraw = $draw->getPrevDraw($id);
     //Get draw data formatted for view
     $data = $this->_setDrawData($currentDraw);
     return View::make('draws.index')->with('data', $data);
 }
 /**
  * Get all of the tasks for a given user.
  *
  * @param  User  $user
  * @return Collection
  */
 public function fetchAll()
 {
     return Draw::all();
 }