im still new to laravel 8 and i have a problem that says the target class does not exist. i believe it have something with the route of some sorts(?) im not sure. i only follow the tutorial but this is the error that i get. this is what i wrote,
web.php:
<?php
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::group(['middleware' => ['auth', 'admin']], function () {
Route::get('/dashboard', function () {
return view('admin.dashboard');
});
Route::get('/role-register','Admin\DashboardController@registered');
});