public function active($id, Poll $polls) { $poll = $polls->findOrFail($id); return trans('Poll #' . $id . ' is ' . $polls->pollStatus($poll) . ' now'); }