public function store()
{
$input = Input::all();
$input['created_by'] = Sentry::getUser()->id;
try {
$slide = new Slideshow($input);
$slide->save();
return Redirect::route("{$this->link_type}.modules.doptor.slideshow.index")->with('success_message', trans('success_messages.slide_create'));
} catch (ValidationException $e) {
return Redirect::back()->withInput()->withErrors($e->getErrors());
}
}