Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function scopeActive($query)
- {
- return $query->whereNull('end_time')->orWhere('end_time', '>', Carbon::now());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement