group(function () { Route::get('/', [HomeController::class, 'index'])->name('home.index'); Route::get('/banner/{banner}', [HomeController::class, 'banner'])->name('home.banner'); Route::middleware('auth:customer')->group(function () { // profile Route::get('profile', [ProfileController::class, 'index'])->name('customer.profile.index'); Route::get('profile/update', [ProfileController::class, 'show'])->name('customer.profile.show'); Route::post('profile/update', [ProfileController::class, 'update']); // logout Route::post('logout', [AuthController::class, 'destroy'])->name('customer.logout'); }); Route::middleware('guest:customer')->group(function () { // login Route::get('/login', [AuthController::class, 'login'])->name('customer.login'); Route::post('/login', [AuthController::class, 'update']); Route::get('/login/google', [AuthController::class, 'signin_google'])->name('customer.login.google'); Route::get('/login/callback_google', [AuthController::class, 'callback_google'])->name('customer.login.callback_google'); // register Route::get('/register', [AuthController::class, 'register'])->name('customer.register'); Route::post('/register', [AuthController::class, 'store']); }); }); require_once 'admin.php';