Request::old PHP Method

old() public static method

Retrieve an old input item.
public static old ( string $key = null, string | array | null $default = null ) : string | array
$key string
$default string | array | null
return string | array
        public static function old($key = null, $default = null)
        {
            return \Illuminate\Http\Request::old($key, $default);
        }

Usage Example

Example #1
0
 public function init($values, $rows, $arguments = [])
 {
     $oldInput = \Request::old();
     if (!count($oldInput)) {
         $this->values = $values;
     } else {
         $this->values = $oldInput;
     }
     $this->rowsAttrs = $rows;
     $this->arguments = $arguments;
     $this->setRows();
 }
All Usage Examples Of Request::old