Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在学习你的项目,问几个问题 #1

Open
MukuroSama opened this issue Feb 25, 2019 · 0 comments
Open

在学习你的项目,问几个问题 #1

MukuroSama opened this issue Feb 25, 2019 · 0 comments

Comments

@MukuroSama
Copy link

因为你Github没留邮箱,就直接在Issue里问了,不好意思哈。
我Laravel还是新手,之前只做过网站,没做过API。

第一个问题:'middleware' => 'api.throttle',这个api.throttle是在哪里定义的?
我只知道在Kernel.php中定义键值对,写一行 'api.thrpttle' => XXXX:class,但是没找到。

第二个问题:config.auth中的guards.api那一项的driver是jwt,这个jwt又是在哪定义的?
我看文档里关于自定义看守器的部分,是要将guard定义在provider里的。可我把provider全翻了一遍,也没找到有过改动的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant