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'); Route::get('/customers/{id}/login-with-token', [\App\Http\Controllers\Api\CustomersController::class, 'loginWithToken']) ->name('customers.login-with-token');