public function only($exceptions)
    {
        $data = [];

        if (! is_array($exceptions)) {
            $exceptions = func_get_args();
        }

        foreach ($exceptions as $exception) {
            if (isset($this->input[$exception])) {
                $data[$exception] = $this->input[$exception];
            }
        }

        return $data;
    }
public function only($exceptions)
    {
        $data = [];

        if (! is_array($exceptions)) {
            $exceptions = func_get_args();
        }

        foreach ($exceptions as $exception) {
            if (isset($this->input[$exception])) {
                $data[$exception] = $this->input[$exception];
            }
        }

        return $data;
    }
public function only ( $ exceptions ) { $ data = [ ] ; if ( ! is_array ( $ exceptions ) ) { $ exceptions = func_get_args ( ) ; } foreach ( $ exceptions as $ exception ) { if ( isset ( $ this -> input [ $ exception ] ) ) { $ data [ $ exception ] = $ this -> input [ $ exception ] ; } } return $ data ; }
Retrieves the values contained in the exception table

@param array $exceptions
@return array
Retrieves the values contained in the exception table