emilmoe

Untitled

May 17th, 2020
623
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Active records for a given date.
  3.  *
  4.  * @param  Builder $query
  5.  * @param  Carbon  $date
  6.  * @return void
  7.  */
  8. public function scopeActive(Builder $query, Carbon $date): void
  9. {
  10.     $query->where('date', $date)
  11.         ->where('locked_active', true);
  12. }
RAW Paste Data