23 lines
829 B
PHP
23 lines
829 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Route;
|
||
|
use Modules\Leave\Http\Controllers\LeaveController;
|
||
|
use Modules\Leave\Http\Controllers\LeaveTypeController;
|
||
|
|
||
|
/*
|
||
|
|--------------------------------------------------------------------------
|
||
|
| 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!
|
||
|
|
|
||
|
*/
|
||
|
|
||
|
Route::group([], function () {
|
||
|
Route::post('status-update',[LeaveController::class,'updateStatus'])->name('leave.updateStatus');
|
||
|
Route::resource('leave', LeaveController::class)->names('leave');
|
||
|
Route::resource('leave-type', LeaveTypeController::class)->names('leaveType');
|
||
|
});
|