src/Arhitect/Http/Request.php
public function param($key = NULL, $default = NULL)
    {
        if ( !$key ) {
            return $this->attributes->all();
        }

        $path = '';
        $key  = explode('.', $key);
        foreach ($key as $item) {
            if ( !$path ) {
                $path .= $item;
                continue;
            }
            $path .= '[' . $item . ']';
        }

        return $this->attributes->get($path, $default, TRUE);
    }
public function param($key = NULL, $default = NULL)
    {
        if ( !$key ) {
            return $this->attributes->all();
        }

        $path = '';
        $key  = explode('.', $key);
        foreach ($key as $item) {
            if ( !$path ) {
                $path .= $item;
                continue;
            }
            $path .= '[' . $item . ']';
        }

        return $this->attributes->get($path, $default, TRUE);
    }
public function param ( $ key = NULL , $ default = NULL ) { if ( ! $ key ) { return $ this -> attributes -> all ( ) ; } $ path = '' ; $ key = explode ( '.' , $ key ) ; foreach ( $ key as $ item ) { if ( ! $ path ) { $ path .= $ item ; continue ; } $ path .= '[' . $ item . ']' ; } return $ this -> attributes -> get ( $ path , $ default , TRUE ) ; }
Returns a certain parameter from Route Params
If key is NULL, returns all the data in the Route Params

@param null $key
@param null $default

@return string|array
Returns a certain parameter from Route Params If key is NULL returns all the data in the Route Params