Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

emilmoe May 17th, 2020 (edited) 635 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Selected active event for given date.
  3.  *
  4.  * @param  Carbon $date
  5.  * @return Event
  6.  */
  7. public static function active(Carbon $date): Event
  8. {
  9.     return self::where('locked_active', true)->count() > 0
  10.         ? self::where('locked_active', true)->firstOrFail()
  11.         : self::where('date', $date)->firstOrFail();
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top