group(function () { Route::get('/dashboard', function () { return view('dashboard'); })->name('dashboard'); }); use App\Http\Controllers\HistoryController; use App\Http\Livewire\ImageUpload; Route::get('/upload', ImageUpload::class)->name('upload'); Route::get('/history', [HistoryController::class, 'index'])->name('history');