/**
  * Store a newly created ActivityLog in storage.
  *
  * @param CreateActivityLogRequest $request
  *
  * @return Response
  */
 public function store(CreateActivityLogRequest $request)
 {
     $input = $request->all();
     $activityLog = $this->activityLogRepository->create($input);
     Flash::message('ActivityLog saved successfully.');
     return redirect(route('activityLogs.index'));
 }
 /**
  * Store a newly created ActivityLog in storage.
  *
  * @param Request $request
  *
  * @return Response
  */
 public function store(Request $request)
 {
     if (sizeof(ActivityLog::$rules) > 0) {
         $this->validateRequest($request, ActivityLog::$rules);
     }
     $input = $request->all();
     $activityLog = $this->activityLogRepository->create($input);
     $meta = array('total' => 1, 'count' => 1, 'offset' => 0, 'last_updated' => $this->activityLogRepository->lastUpdated(), 'status' => "ActivityLog saved successfully.", 'error' => 'Success');
     return Response::json(ResponseManager::makeResult($activityLog->toArray(), $meta), 201);
 }