closed_at === null || now()->lt($this->closed_at); } public function category() { return $this->belongsTo(Category::class); } public function author() { return $this->belongsTo(User::class); } public function questions() { return $this->belongsToMany(Question::class) ->withTimestamps(); } }