emilmoe May 17th, 2020 (edited) 635 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- * Selected active event for given date.
- * @param Carbon $date
- * @return Event
- public static function active(Carbon $date): Event
- return self::where('locked_active', true)->count() > 0
- ? self::where('locked_active', true)->firstOrFail()
- : self::where('date', $date)->firstOrFail();
RAW Paste Data