name('login'); if (!file_exists(storage_path('installed'))) { Route::get('/', \App\Livewire\Installer::class); } else { Route::get('/', function () { return redirect('/admin'); }); } Route::get('/installer', \App\Livewire\Installer::class); Route::get('backup/download', [\App\Http\Controllers\BackupDownloadController::class, 'download']) ->name('backup.download');