Target class [Controller] does not exist.
//accessing any function in the controller (this is web.php file)
use App\Http\Controllers\PostsController;
Route::get('/post', 'App\Http\Controllers\PostsController@index');
Target class [Controller] does not exist.
//accessing any function in the controller (this is web.php file)
use App\Http\Controllers\PostsController;
Route::get('/post', 'App\Http\Controllers\PostsController@index');
laravel target class does not exist
Uncomment this line in app>>provider>>RouteServiceProvider.php file
// protected $namespace = 'App\\Http\\Controllers';
Target class does not exist.
use App\Http\Controllers\UserController;
Route::get('/users', [UserController::class, 'index']);
// or
Route::get('/users', 'App\Http\Controllers\UserController@index');
Target class does not exist.
use App\Http\Controllers\RegistrationController;
Route::get('/', [RegistrationController::class, 'create']);
Target class does not exist.
Route::get('/', 'App\Http\Controllers\RegistrationController@create');
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us