Advertisement
emilmoe

Untitled

May 17th, 2020
675
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement