group(function () { Route::get('/paytm/index', 'pay'); Route::get('/paytm/callback', 'callback')->name('paytm.callback'); }); //Admin Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){ Route::controller(PaytmController::class)->group(function () { Route::get('/paytm_configuration', 'credentials_index')->name('paytm.index'); Route::post('/paytm_configuration_update', 'update_credentials')->name('paytm.update_credentials'); }); }); //Toyyibpay Route::controller(ToyyibpayController::class)->group(function () { Route::get('toyyibpay-status', 'paymentstatus')->name( 'toyyibpay-status'); Route::post('/toyyibpay-callback', 'callback')->name( 'toyyibpay-callback'); });