Search code examples
laravellaravel-7

Laravel 7.x ResetsPasswords


I'm following a tutorial for rest the password in laravel via API, the problem is that laravel 7.x doesn't have use Illuminate\Foundation\Auth\ResetsPasswords; and I can't find any solution online

And I can't find it here:

https://laravel.com/api/7.x/search.html?search=ResetsPasswords

Any ideas?


Solution

  • The Trait that you're looking for has been removed from the core Laravel framework repository and into a separate package called laravel/ui.

    You need to install it via composer require laravel/ui. The namespace in your use statement should be the same use Illuminate\Foundation\Auth\ResetsPasswords;.