I have pagination route in the API.php and you know, the user keep clicking next next and then get throttling errors. How can I avoid that. It's local service so I don't care much about DDOS.
check your app/Http/Kernel.php, there you can either disable the throttling middleware at all or set a less restrictive rate_limit. have a look at this part in the file:
@s4muel Thank for the help but I have another question. When I said that it's only local service I do mean that only that one specific API because it's under Auth that only local user can do unlimited access. How do I only remove rate_limit from that specific route only?
disable the throttle middleware at all + enable it for each of your api routes separately (except the one under Auth) - not nice, but if you have couple of routes, it should be ok (have a look at route groups as well: https://laravel.com/docs/5.7/routing#route-groups )