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

Created at 13-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

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.