Target class [App\Http\Controllers\Auth\Request] does not exist.
Target class [AppHttpControllersAuthRequest] does not exist.
With this article, we will examine several different instances of how to solve the "Target class [AppHttpControllersAuthRequest] does not exist.".
I have found the error Target class [App\Http\Controllers\Auth\Request] does not exist while visiting a URL in my Laravel app because I did not import the use Illuminate\Http\Request; in my controller file. You have to add the use Illuminate\Http\Request; after the namespace in your controller file to avoid this error.-
Use Illuminate\Http\Request; in Laravel
//Simply use below code snippet after the namespace to avoid the error. use Illuminate\Http\Request;
Additional Notes :
You can add use Illuminate\Http\Request; after the namespace in controller. Your controller namespace code will be look like this.
<?php namespace App\Http\Controllers\Auth;
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
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.
Random Code Snippet Queries: Laravel
- Pass variable from blade to controller Laravel
- Laravel delete all rows older than 30 days
- How to create project_user pivot table in laravel
- How to get records in random order in laravel
- How to show data by ID in laravel?
- Display data in table using foreach in Laravel
- Convert input array to comma-separated string in laravel controller
- How to pass two variables in HREF in laravel
- Redirect from www to non www in laravel using htaccess
- Use withCount() to Calculate Child Relationship Records
- Call to undefined relationship [user] on model [App\Models\Post]
- Ignore Records where a field has NULL value in Laravel
- Call to undefined method Illuminate\Support\Facades\Request::all()
- Argument 1 passed to Symfony\Component\HttpFoundation\Response::setContent() must be of the type string or null, object given
- How to pass query string with pagination in laravel
- Update last created record in Laravel
- Add a subselect based on relationship using withAggregate method
- How to get column names from table in Laravel
- Save or update pivot table data with additional column in Laravel
- Laravel 9 route group with controller
- SQLSTATE[42000]: Syntax error or access violation: 1055
- Call to undefined method App\Models\User::follow()
- How to make Copy or Duplicate table row in laravel
- Php artisan make model, factory, migration and controller in single command
- Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails