/** * 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($data = array_filter($input, $callback = function (&$value) use(&$callback) { if (is_array($value)) { $value = array_filter($value, $callback); } return !$value instanceof UploadedFile; })); return $this; }
/** * 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; }
/** * Flash an input array to the session. * * @param array $value * @return void * @static */ public static function flashInput($value) { \Illuminate\Session\Store::flashInput($value); }
/** * 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($this->removeFilesFromInput($input)); return $this; }
public function withInput() { $this->session->flashInput($this->input); return $this; }