Argument 1 passed to App\Http\Controllers\Auth\LoginController::authenticated() must be an instance of App\Http\Controllers\Auth\Request

Updated at 12-Jul-2021, By samar

Argument 1 passed to AppHttpControllersAuthLoginController::authenticated() must be an instance of AppHttpControllersAuthRequest

We will use programming in this lesson to attempt to solve the "Argument 1 passed to AppHttpControllersAuthLoginController::authenticated() must be an instance of AppHttpControllersAuthRequest".

You have to import the request class with \Illuminate\Http\Request; at the top of the LoginController to avoid error Argument 1 passed to App\Http\Controllers\Auth\LoginController::authenticated() must be an instance of App\Http\Controllers\Auth\Request.
  • Import request class to LoginController

    --PATH app\Http\Controllers\Auth\LoginController.php
    //Before class definition
    use Illuminate\Http\Request;
    

Back to code snippet queries related laravel