Files
asset-management-system/routes/web.php
2025-12-01 08:10:58 +07:00

22 lines
591 B
PHP

<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\DashboardsController;
use App\Http\Controllers\SystemSettingController;
use App\Http\Controllers\Controller;
Route::get('/', function () {
return view('welcome');
});
/******** Dashboards ********/
Route::get('/', function () {
return redirect('index'); // This will redirect '/' to '/index'
});
// Route::get('/', [DashboardsController::class, 'index']);
Route::get('index', [DashboardsController::class, 'index']);
Route::get('settings', [SystemSettingController::class, 'index'])->name('settings.index');