group(function() { Route::get('/', [RegistrationFormStepsController::class, 'index']); Route::post('/', [RegistrationFormStepsController::class, 'register'])->name('frontend.registration-form-steps.register'); Route::post('/validate', [RegistrationFormStepsController::class, 'validate'])->name('frontend.registration-form-steps.validate'); Route::get('/data', [RegistrationFormStepsController::class, 'data'])->name('frontend.registration-form-steps.data'); }); Route::get('/register/paypal', [RegistrationFormStepsController::class, 'paypal']); Route::get('/register/{code}', [RegistrationFormStepsController::class, 'registerCode']);