public function store(Request $request) { $input = Input::except('token'); $event = new Event(); $validator = $event->getValidator($input); if ($validator->fails()) { return $this->respondInvalidData($validator->errors()); } $event->fill($input); $event->user_id = Auth::user()->id; $event->save(); return $this->respondCreateSuccess($event->event_name . ' created'); }