/** * Display a listing of the ActivityLog. * * @param Request $request * * @return Response */ public function index(Request $request) { $input = $request->all(); $result = $this->activityLogRepository->search($input); $activityLogs = $result[0]; $attributes = $result[1]; return view('activityLogs.index')->with('activityLogs', $activityLogs)->with('attributes', $attributes); }
/** * Display a listing of the ActivityLog. * * @param Request $request * * @return Response */ public function index(Request $request) { $input = $request->all(); $result = $this->activityLogRepository->search($input); $activityLogs = $result[0]; $meta = array('total' => $result['total'], 'count' => count($activityLogs), 'offset' => isset($input['offset']) ? (int) $input['offset'] : 0, 'last_updated' => $this->activityLogRepository->lastUpdated(), 'status' => "ActivityLogs retrieved successfully.", 'error' => 'Success'); return Response::json(ResponseManager::makeResult($activityLogs->toArray(), $meta)); }