php – AuthenticatesUsers file does not exist in Illuminate\Foundation\Auth\-ThrowExceptions

Exception or error:

I set up a basic login/register system in Larave, and it is working perfectly, but I can’t find the “AuthenticatesUsers” file to edit or just look at. All auth controllers reference to this file, but it simply doesn’t exist. Where might it be?


namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;

class LoginController extends Controller
{
    use AuthenticatesUsers;

enter image description here

How to solve:

This strange thing happened in Laravel 7. They took out part of the authorization in a separate package laravel/ui.

Just use composer require laravel/ui

Leave a Reply

Your email address will not be published. Required fields are marked *