composer dump-autoload and make sure you are using the correct namespace in the controller. And correct import wherever you are referencing the controller.
Jun 22, 2023
7
Level 1
Illuminate \ Contracts \ Container \ BindingResolutionException PHP 8.2.4 10.13.1 Target class [UserController] does not exist.
Composer provides a convenient, automatically generated class loader for | this application. We just need to utilize it! We'll simply require it | into the script here so we don't need to manually load our classes. | / require DIR.'/../vendor/autoload.php'; /
|--------------------------------------------------------------------------
Run The Application Once we have the application, we can handle the incoming request using the application's HTTP kernel. Then, we will send the response back to this client's browser, allowing them to enjoy our application. */ $app = require_once DIR.'/../bootstrap/app.php'; $kernel = $app->make(Kernel::class); $response = $kernel->handle($request = Request::capture()
)->send(); $kernel->terminate($request, $response);
Please or to participate in this conversation.