name('register'); Route::post('/register', [auth::class, 'signUpStore'])->name('register.store'); Route::get('/login', [auth::class, 'signInForm'])->name('login'); Route::post('/login', [auth::class, 'signInCheck'])->name('login.check'); Route::get('/logout', [auth::class, 'signOut'])->name('logOut'); Route::resource('/courseCategory', courseCategory::class); Route::middleware(['checkrole'])->group(function () { Route::get('/dashboard', [dashboard::class, 'index'])->name('dashboard'); Route::resource('/user', user::class); Route::get('/userProfile', [auth::class, 'show'])->name('userProfile'); }); Route::get('/', function () { return view('frontend.home'); }); Route::get('/home', function () { return view('frontend.home'); })->name('home'); // Route::get('/dashboard', function () { // return view('welcome'); // })->name('dashboard');