set_route_guard('web').'/payment'], function () { Route::resource('payment', 'PaymentResourceController'); }); // Resource routes for transaction Route::group(['prefix' => set_route_guard('web').'/payment'], function () { Route::resource('transaction', 'TransactionResourceController'); });