feat: Tambahkan HistoryPerusahaanController pada routes web
parent
0ec8f85cbd
commit
6fabbe8708
|
@ -3,6 +3,7 @@
|
||||||
use App\Http\Controllers\CategoryController;
|
use App\Http\Controllers\CategoryController;
|
||||||
use App\Http\Controllers\DaftarPerusahaanController;
|
use App\Http\Controllers\DaftarPerusahaanController;
|
||||||
use App\Http\Controllers\HistoryKegiatanController;
|
use App\Http\Controllers\HistoryKegiatanController;
|
||||||
|
use App\Http\Controllers\HistoryPerusahaanController;
|
||||||
use App\Http\Controllers\HomeController;
|
use App\Http\Controllers\HomeController;
|
||||||
use App\Http\Controllers\HukumController;
|
use App\Http\Controllers\HukumController;
|
||||||
use App\Http\Controllers\JenisDokILController;
|
use App\Http\Controllers\JenisDokILController;
|
||||||
|
@ -161,6 +162,15 @@ Route::middleware(['auth'])->prefix('admin')->group(function () {
|
||||||
Route::delete('/hukum/{hukum}', [HukumController::class, 'destroy'])->name('admin.hukum.destroy');
|
Route::delete('/hukum/{hukum}', [HukumController::class, 'destroy'])->name('admin.hukum.destroy');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Route::middleware(['auth'])->prefix('admin')->group(function () {
|
||||||
|
Route::get('/history_perusahaan', [HistoryPerusahaanController::class, 'index'])->name('admin.history_perusahaan.index');
|
||||||
|
Route::get('/history_perusahaan/add', [HistoryPerusahaanController::class, 'create'])->name('admin.history_perusahaan.create');
|
||||||
|
Route::post('/history_perusahaan', [HistoryPerusahaanController::class, 'store'])->name('admin.history_perusahaan.store');
|
||||||
|
Route::get('/history_perusahaan/{history_perusahaan}', [HistoryPerusahaanController::class, 'edit'])->name('admin.history_perusahaan.edit');
|
||||||
|
Route::post('/history_perusahaan/{history_perusahaan}', [HistoryPerusahaanController::class, 'update'])->name('admin.history_perusahaan.update');
|
||||||
|
Route::delete('/history_perusahaan/{history_perusahaan}', [HistoryPerusahaanController::class, 'destroy'])->name('admin.history_perusahaan.destroy');
|
||||||
|
});
|
||||||
|
|
||||||
Route::middleware(['auth'])->prefix('admin')->group(function () {
|
Route::middleware(['auth'])->prefix('admin')->group(function () {
|
||||||
Route::get('/post', [PostController::class, 'index'])->name('admin.post.index');
|
Route::get('/post', [PostController::class, 'index'])->name('admin.post.index');
|
||||||
Route::get('/post/add', [PostController::class, 'create'])->name('admin.post.create');
|
Route::get('/post/add', [PostController::class, 'create'])->name('admin.post.create');
|
||||||
|
|
Loading…
Reference in New Issue