show when publish_at is before now

This commit is contained in:
2023-01-24 21:56:34 +10:00
parent 025d5f50f1
commit dd3c196aa3

View File

@@ -31,11 +31,6 @@ class EventFilter extends FilterAbstract
'location' => ['location','address'],
];
// protected $q = [
// 'title',
// 'content'
// ];
/**
* Determine if the user can view the media model
@@ -64,7 +59,7 @@ class EventFilter extends FilterAbstract
) {
return $builder
->where('status', '!=', 'draft')
->where('publish_at', '>=', now());
->where('publish_at', '<=', now());
}
}
}