group( function () { Route::prefix('employee')->as('employee.')->group(function () { Route::post('assignRole', [EmployeeController::class, 'assignRole'])->name('assignRole'); Route::post('changePassword', [EmployeeController::class, 'changePassword'])->name('changePassword'); }); Route::resource('employee', EmployeeController::class)->names('employee'); } );