Level 122
You can create your own limiter and set the 'by' parameter as you wish
https://laravel.com/docs/11.x/routing#defining-rate-limiters
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have found a solution for this. https://stackoverflow.com/questions/33268683/how-to-get-client-ip-address-in-laravel-5/41769505#41769505
now the question is how do i extend Illuminate\Http\Request to implement this method for the load balancer,
"To fix this:
Illuminate\Http\Request.php
public function ip()
{
//return $this->getClientIp(); //original method
return $this->getIp(); // the above method
}
```"
You can create your own limiter and set the 'by' parameter as you wish
https://laravel.com/docs/11.x/routing#defining-rate-limiters
Please or to participate in this conversation.