/**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * Flash an input array to the session.
  *
  * @param array $value
  * @return void 
  * @static 
  */
 public static function flashInput($value)
 {
     \Illuminate\Session\Store::flashInput($value);
 }
Ejemplo n.º 4
0
 /**
  * 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;
 }
Ejemplo n.º 5
0
 public function withInput()
 {
     $this->session->flashInput($this->input);
     return $this;
 }