fix(controller): resolve F-01 — create missing HomeController with correct column names (lat/lng)

This commit is contained in:
root
2026-05-30 22:17:29 +08:00
parent 6a4de2ba22
commit 5410e0916d

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\DB;
class HomeController extends Controller
{
public function index()
{
$stations = DB::table('station')
->select('stationid', 'name', 'district', 'lat', 'lng', 'rainfall', 'waterlevel', 'siren')
->orderBy('stationid')
->get();
return view('layout.dashboard', compact('stations'));
}
}