We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8058f73 commit 8bb3219Copy full SHA for 8bb3219
app/Http/Requests/Auth/LoginRequest.php
@@ -6,7 +6,6 @@
6
use Illuminate\Foundation\Http\FormRequest;
7
use Illuminate\Support\Facades\Auth;
8
use Illuminate\Support\Facades\RateLimiter;
9
-use Illuminate\Support\Str;
10
use Illuminate\Validation\ValidationException;
11
12
class LoginRequest extends FormRequest
@@ -80,6 +79,10 @@ public function ensureIsNotRateLimited(): void
80
79
*/
81
public function throttleKey(): string
82
{
83
- return Str::transliterate(Str::lower($this->string('email')).'|'.$this->ip());
+ return $this->string('email')
+ ->lower()
84
+ ->append('|'.$this->ip())
85
+ ->transliterate()
86
+ ->value();
87
}
88
0 commit comments