src/Leevel/Http/Request.php
public function only(array $keys): array
    {
        $results = [];

        $input = $this->all();

        foreach ($keys as $key) {
            $results[$key] = $input[$key] ?? null;
        }

        return $results;
    }
public function only(array $keys): array
    {
        $results = [];

        $input = $this->all();

        foreach ($keys as $key) {
            $results[$key] = $input[$key] ?? null;
        }

        return $results;
    }
取得给定的 keys 数据.

@param array $keys

@return array