Framework: ThrottlesLogin trait missing

Created on 2 Apr 2020  路  2Comments  路  Source: laravel/framework


  • Laravel Version: 7.4.0
  • PHP Version: 7.3.13
  • Database Driver & Version: -

Description:

I am in the process of upgrading to laravel 7, and it seems that currently Illuminate\Foundation\Auth\ThrottlesLogins; is missing

Missing in 7.x: https://github.com/laravel/framework/blob/7.x/src/Illuminate/Foundation/Auth/ThrottlesLogins.php

But available in 6.x: https://github.com/laravel/framework/blob/6.x/src/Illuminate/Foundation/Auth/ThrottlesLogins.php).

Looking at the upgrade guide, there is no mention of it: https://laravel.com/docs/7.x/upgrade

Is it moved? Or deleted?

Steps To Reproduce:

Most helpful comment

I had the same problem and the above answer was not clear what was going on, but it's as simple as doing:

composer require laravel/ui

For some reason the file has the same namespace rather than being under a laravel/ui namespace so after that there's nothing you need to do if you were already using it.

Also copying the error message I had for easier googling since it took me a while to find this:

"Trait 'Illuminate\FoundationAuthThrottlesLogins' not found"

All 2 comments

I had the same problem and the above answer was not clear what was going on, but it's as simple as doing:

composer require laravel/ui

For some reason the file has the same namespace rather than being under a laravel/ui namespace so after that there's nothing you need to do if you were already using it.

Also copying the error message I had for easier googling since it took me a while to find this:

"Trait 'Illuminate\FoundationAuthThrottlesLogins' not found"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

digirew picture digirew  路  3Comments

klimentLambevski picture klimentLambevski  路  3Comments

PhiloNL picture PhiloNL  路  3Comments

shopblocks picture shopblocks  路  3Comments

YannPl picture YannPl  路  3Comments