setup module

This commit is contained in:
2024-04-10 18:06:18 +05:45
parent e0fe321cb7
commit 1dbc6cabf8
11 changed files with 215 additions and 158 deletions

View File

@ -14,10 +14,16 @@ use Modules\Employee\Http\Controllers\EmployeeController;
|
*/
Route::group(['middleware' => 'auth'], function () {
Route::post('assignRole', [EmployeeController::class, 'assignRole'])->name('employee.assignRole');
Route::resource('employee', EmployeeController::class)->names('employee');
Route::group(['prefix' => 'employee'], function () {
});
Route::middleware('auth')->group(
function () {
});
Route::prefix('employee')->as('employee.')->group(function () {
Route::post('assignRole', [EmployeeController::class, 'assignRole'])->name('assignRole');
Route::post('changePassword', [EmployeeController::class, 'changePassword'])->name('assignRole');
});
Route::resource('employee', EmployeeController::class)->names('employee');
}
);