'boolean', 'is_pinned' => 'boolean', ]; /** @var array */ protected $fillable = [ 'title', 'text', 'is_meeting', 'is_pinned', 'user_id', ]; /** * @return HasMany */ public function comments(): HasMany { return $this->hasMany(NewsComment::class) ->orderBy('created_at'); } }