Пример #1
0
 public function store()
 {
     $data = \Input::all();
     try {
         $image = \ImageDriver::store($data);
     } catch (\Watson\Validating\ValidationException $e) {
         return \Redirect::route('dev.images.create')->withErrors($e->getErrors())->withInput();
     }
     return \Redirect::route('dev.images.show', $image->id);
 }