From 790f595f0fcbd36749bbbf46e5d4dda27a2aacee Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Wed, 7 Aug 2024 21:50:09 +0200 Subject: [PATCH] Fix --- .../Controllers/{HomeController.php => DashboardController.php} | 2 +- routes/web.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename app/Http/Controllers/{HomeController.php => DashboardController.php} (69%) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/DashboardController.php similarity index 69% rename from app/Http/Controllers/HomeController.php rename to app/Http/Controllers/DashboardController.php index b0eb37c..2e84f96 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/DashboardController.php @@ -2,7 +2,7 @@ namespace App\Http\Controllers; -class HomeController extends BaseController +class DashboardController extends BaseController { public function index() { diff --git a/routes/web.php b/routes/web.php index 30778da..4ae7295 100644 --- a/routes/web.php +++ b/routes/web.php @@ -7,7 +7,7 @@ return view('welcome'); }); -Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); +Route::get('/dashboard', [App\Http\Controllers\DashboardController::class, 'index'])->name('dashboard'); Route::get('/maintenance/planned', [App\Http\Controllers\MaintenanceController::class, 'planned'])->name('maintenance.planned'); Route::get('/maintenance/planned/{maintenance_history}', [App\Http\Controllers\MaintenanceController::class, 'plannedDetail'])->name('maintenance.planned.detail'); Route::put('/maintenance/planned/{maintenance_history}', [App\Http\Controllers\MaintenanceController::class, 'plannedDetailPut'])->name('maintenance.planned.detail.put');