feat: API informasi sekolah hanya menampilkan info dengan tanggal hari ini

This commit is contained in:
Novy San87
2026-08-05 21:13:29 +07:00
parent 31643ff7dc
commit 921a3495db
@@ -15,6 +15,7 @@ class ParentSchoolInformationController extends Controller
{ {
$items = SchoolInformation::query() $items = SchoolInformation::query()
->where('is_published', true) ->where('is_published', true)
->whereDate('event_date', today()) // hanya yang tanggalnya hari ini
->orderByDesc('event_date') ->orderByDesc('event_date')
->orderByDesc('created_at') ->orderByDesc('created_at')
->limit(50) ->limit(50)