'array', 'is_good_first_issue' => 'boolean', 'is_help_wanted' => 'boolean', 'comments' => 'integer', 'issue_created_at' => 'datetime', 'issue_updated_at' => 'datetime', ]; } /** * @return BelongsTo */ public function repository(): BelongsTo { return $this->belongsTo(Repository::class); } /** * Nobody has picked it up yet, so it is genuinely available. */ public function isUnclaimed(): bool { return blank($this->assignee); } /** * @param Builder<$this> $query * @return Builder<$this> */ public function scopeAvailable(Builder $query): Builder { return $query->whereNull('assignee'); } }