Do you have the use statement at the top.
https://laravel.com/docs/8.x/routing#basic-routing
Scroll down a little.
Summer Sale! All accounts are 50% off this week.
I have a route in Laravel 8.11 that just won't work.
Route::get('/', [HomeController::class, 'index']);
There is a HomeController.php and an index method yet the error says, "Target class [HomeController] does not exist." I disagree. What's up?
Do you have the use statement at the top.
https://laravel.com/docs/8.x/routing#basic-routing
Scroll down a little.
Please or to participate in this conversation.