# Rate limit Fortify login attempts

> Fortify's login limiter is five attempts a minute. The Vue page shows the message on the username field.

- URL: https://laravel-vuejs.space/laravel-login-rate-limit-vue
- Author: Anass Ez-zouaine (https://laravel-vuejs.space/author/anass-ez-zouaine)
- Published: 2026-10-11
- Topics: Laravel, VueJs

People searching “Laravel login rate limit” raise the limit until the lockout “goes away”. The lockout is the feature. The Vue starter kit registers a limiter named `login` in `App\Providers\FortifyServiceProvider`. The [Fortify guide](https://laravel-vuejs.space/laravel-fortify-vue) is the form that trips it.

> **TL;DR**
>
> -   Fortify’s login limiter is five attempts a minute.
> -   The Vue page shows the message on the username field.
> -   Do not clear cookies to bypass it.
> -   Do not key the limiter on the IP alone if you expect an office to share one address, and do not key it on the email alone if one password can be tried from anywhere.
>
> **Who it's for:** Laravel + Vue developers
>
> **Applies to:** Laravel 13 · Vue 3

## The fix

```php
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Str;
use Laravel\Fortify\Fortify;

RateLimiter::for('login', function (Request $request) {
    $key = Str::transliterate(Str::lower($request->input(Fortify::username())).'|'.$request->ip());

    return Limit::perMinute(5)->by($key);
});
```

Five failures for that email and IP return a validation error. Show it the same way as a wrong password:

```vue
<p v-if="form.errors.email">{{ form.errors.email }}</p>
```

## What to avoid

> **Gotcha**
>
> Do not clear cookies to bypass it. Do not key the limiter on the IP alone if you expect an office to share one address, and do not key it on the email alone if one password can be tried from anywhere. The pair above is Fortify’s default.

## FAQ

**Q: How do I rate limit Fortify login attempts?**

Fortify's login limiter is five attempts a minute. The Vue page shows the message on the username field.

**Q: What goes wrong with Laravel login rate limit?**

Many developers raise the limit until the lockout "goes away". Do not clear cookies to bypass it.
