Update: laravel 8 to 12, php 7.3 to php 8.3, Jenkinsfile, Unit/Feature testing, vapor, docker

This commit is contained in:
Dillon Ngo
2026-04-03 06:59:39 +08:00
parent 58de1017d7
commit b34b7c19d6
142 changed files with 3334 additions and 1101 deletions
+17 -9
View File
@@ -1,18 +1,26 @@
<?php
use App\Http\Controllers\Segments\CreateSegmentController;
use App\Http\Controllers\Segments\DeleteSegmentController;
use App\Http\Controllers\Segments\FetchConstantController;
use App\Http\Controllers\Segments\FetchSegmentController;
use App\Http\Controllers\Segments\ListSegmentsController;
use App\Http\Controllers\Segments\UpdateConstantController;
use App\Http\Controllers\Segments\UpdateCustomServiceConstantController;
use App\Http\Controllers\Segments\UpdateSegmentController;
use Illuminate\Support\Facades\Route;
Route::group(['prefix' => 'segment', 'as' => 'segment.', 'namespace' => 'Segments'], function () {
Route::get('/{id}/show', 'FetchSegmentController@fetch')->name('show');
Route::post('/create', 'CreateSegmentController@create')->name('create');
Route::put('/update/{id}', 'UpdateSegmentController@update')->name('update');
Route::delete('/delete/{id}', 'DeleteSegmentController@delete')->name('delete');
Route::get('/list', 'ListSegmentsController@list')->name('list');
Route::group(['prefix' => 'segment', 'as' => 'segment.'], function () {
Route::get('/{id}/show', [FetchSegmentController::class, 'fetch'])->name('show');
Route::post('/create', [CreateSegmentController::class, 'create'])->name('create');
Route::put('/update/{id}', [UpdateSegmentController::class, 'update'])->name('update');
Route::delete('/delete/{id}', [DeleteSegmentController::class, 'delete'])->name('delete');
Route::get('/list', [ListSegmentsController::class, 'list'])->name('list');
Route::group(['prefix' => '{id}/constant', 'as' => 'constant.'], function () {
Route::put('/service/update', 'UpdateCustomServiceConstantController@update')->name('service.update');
Route::put('/update', 'UpdateConstantController@update')->name('update');
Route::get('/show/{reference}', 'FetchConstantController@fetch')->name('show');
Route::put('/service/update', [UpdateCustomServiceConstantController::class, 'update'])->name('service.update');
Route::put('/update', [UpdateConstantController::class, 'update'])->name('update');
Route::get('/show/{reference}', [FetchConstantController::class, 'fetch'])->name('show');
});
});