Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
097f6240
...
097f6240cde91f59ac1363304fce0cb75426145b
authored
2022-07-25 20:23:55 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
aa06788b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Providers/RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
View file @
097f624
...
...
@@ -71,7 +71,7 @@ class RouteServiceProvider extends ServiceProvider
protected
function
configureRateLimiting
()
{
RateLimiter
::
for
(
'api'
,
function
(
Request
$request
)
{
return
Limit
::
perMinute
(
10
00
)
->
by
(
optional
(
$request
->
user
())
->
id
?:
$request
->
ip
());
return
Limit
::
perMinute
(
5
00
)
->
by
(
optional
(
$request
->
user
())
->
id
?:
$request
->
ip
());
});
}
}
...
...
Please
register
or
sign in
to post a comment