laravel-api-auth icon indicating copy to clipboard operation
laravel-api-auth copied to clipboard

可以自定义的 laravel API 鉴权包。

Results 2 laravel-api-auth issues
Sort by recently updated
recently updated
newest added

直接http://localhost:9996/example 不带参数访问 ![image](https://user-images.githubusercontent.com/23287853/52045967-99ed0600-2580-11e9-966d-2115cb132940.png)

/vendor/96qbhy/laravel-api-auth/src/Middleware.php:41 `list($header, $payload, $alg) = $this->parseParams($header_string, $payload_string);` 这里的返回值是个数组,并且数组的索引是 `return compact('header', 'payload', 'alg');`。 但是list()函数仅能用于数字索引的数组,并假定数字索引从 0 开始。 我将此行代码改为 `list($header, $payload, $alg) = array_values($this->parseParams($header_string, $payload_string));` 就没问题了。不知是否正确,请解答。