Illuminate\Routing\Router::input PHP Method

input() public method

Get a route parameter for the current route.
public input ( string $key, string $default = null ) : mixed
$key string
$default string
return mixed
    public function input($key, $default = null)
    {
        return $this->current()->parameter($key, $default);
    }

Usage Example

Example #1
0
 /**
  * Get a route parameter for the current route.
  *
  * @param string $key
  * @param string $default
  * @return mixed 
  * @static 
  */
 public static function input($key, $default = null)
 {
     return \Illuminate\Routing\Router::input($key, $default);
 }
All Usage Examples Of Illuminate\Routing\Router::input