/** * Store a newly created mentoractivity in storage. * * @return Response */ public function store() { $validator = Validator::make($data = Input::all(), MentorActivity::$rules); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } $data = $this->prepareMentorActivityData(); MentorActivity::create($data); // return Redirect::route('mentor_activities.index'); Session::flash('alert_success', 'Thank you for supporting mentorshipLog! Your record was successfully saved.'); return Redirect::to(secure_url('/dashboard')); }