feat: API informasi sekolah hanya menampilkan info dengan tanggal hari ini
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user