/**
  * Flash an array of input to the session.
  *
  * @param  array  $input
  * @return $this
  */
 public function withInput(array $input = null)
 {
     $input = $input ?: $this->request->input();
     $this->session->flashInput(array_filter($input, function ($value) {
         return !$value instanceof UploadedFile;
     }));
     return $this;
 }