where($this->getTable().'.school_year', $schoolYear); } public function scopeForSchoolYearContext(Builder $query, object $context): Builder { return $query->where($this->getTable().'.school_year', $context->yearName()); } }