added forms country & vehicle running cost (kurang fitur pendukung)
This commit is contained in:
+24
-1
@@ -12,6 +12,8 @@ use App\Http\Controllers\Forms\FormUpCountryController;
|
||||
use App\Http\Controllers\Master\RayonController;
|
||||
use App\Http\Controllers\Master\CostCentreController;
|
||||
use App\Http\Controllers\Master\CategoryController;
|
||||
use App\Http\Controllers\Forms\FormVehicleController;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
Auth::routes();
|
||||
|
||||
@@ -70,9 +72,30 @@ Route::middleware(['auth:admin', 'menu'])->group(function () {
|
||||
Route::get('/up-country/edit/{id}', [FormUpCountryController::class, 'edit'])->name('forms.up-country.edit');
|
||||
Route::put('/up-country/update/{id}', [FormUpCountryController::class, 'update'])->name('forms.up-country.update');
|
||||
Route::delete('/up-country/destroy/{id}', [FormUpCountryController::class, 'destroy'])->name('forms.up-country.destroy');
|
||||
|
||||
// Vehicle Running Cost
|
||||
Route::get('/vehicle-running-cost', [FormVehicleController::class, 'index'])->name('forms.vehicle');
|
||||
Route::get('/vehicle-running-cost/create', [FormVehicleController::class, 'create'])->name('forms.vehicle.create');
|
||||
Route::post('/vehicle-running-cost/store', [FormVehicleController::class, 'store'])->name('forms.vehicle.store');
|
||||
Route::get('/vehicle-running-cost/edit/{id}', [FormVehicleController::class, 'edit'])->name('forms.vehicle.edit');
|
||||
Route::put('/vehicle-running-cost/update/{id}', [FormVehicleController::class, 'update'])->name('forms.vehicle.update');
|
||||
Route::delete('/vehicle-running-cost/destroy/{id}', [FormVehicleController::class, 'destroy'])->name('forms.vehicle.destroy');
|
||||
});
|
||||
|
||||
//Menu Role
|
||||
Route::get('/auth/menu-tree/{id}', [MenuRoleController::class, 'index'])->name('auth.menurole.index');
|
||||
Route::post('/auth/menu-tree/submit', [MenuRoleController::class, 'saveMenu'])->name('auth.menurole.submit');
|
||||
});
|
||||
});
|
||||
|
||||
Route::get('/test-nextcloud', function () {
|
||||
$disk = Storage::disk('nextcloud');
|
||||
$folderPath = 'test-directory';
|
||||
|
||||
// Check if directory exists
|
||||
if (!$disk->exists($folderPath)) {
|
||||
$disk->makeDirectory($folderPath);
|
||||
return "Directory created: $folderPath";
|
||||
}
|
||||
|
||||
return "Directory already exists: $folderPath";
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user