diff --git a/app/Http/Controllers/Api/ParentSchoolInformationController.php b/app/Http/Controllers/Api/ParentSchoolInformationController.php index c4d7a60..5aec5a3 100644 --- a/app/Http/Controllers/Api/ParentSchoolInformationController.php +++ b/app/Http/Controllers/Api/ParentSchoolInformationController.php @@ -15,6 +15,7 @@ class ParentSchoolInformationController extends Controller { $items = SchoolInformation::query() ->where('is_published', true) + ->whereDate('event_date', today()) // hanya yang tanggalnya hari ini ->orderByDesc('event_date') ->orderByDesc('created_at') ->limit(50)