26 lines
796 B
PHP
Raw Normal View History

2024-04-04 18:04:56 +05:45
<?php
use Illuminate\Support\Facades\Route;
use Modules\Employee\Http\Controllers\EmployeeController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
2024-04-10 15:15:24 +05:45
*/
2024-04-04 18:04:56 +05:45
2024-04-10 15:15:24 +05:45
Route::group(['middleware' => 'auth'], function () {
Route::post('assignRole', [EmployeeController::class, 'assignRole'])->name('employee.assignRole');
2024-04-04 18:04:56 +05:45
Route::resource('employee', EmployeeController::class)->names('employee');
2024-04-10 15:15:24 +05:45
Route::group(['prefix' => 'employee'], function () {
});
2024-04-04 18:04:56 +05:45
});
2024-04-11 16:37:12 +05:45