Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Flarum
Core
Discussion
comments
Flarum\Core\Discussion::comments PHP Method
Discussion Class Documentation
Show file
Open project: flarum/core
comments()
public
method
Define the relationship with the discussion's publicly-visible comments.
public
comments
( ) :
Illuminate\Database\Eloquent\Relations\HasMany
return
Illuminate\Database\Eloquent\Relations\HasMany
public function comments() { return $this->postsVisibleTo(new Guest())->where('type', 'comment'); }
Discussion
boot
comments
getModifiedPosts
hide
lastPost
lastUser
mergePost
participants
posts
postsVisibleTo
readers
refreshCommentsCount
refreshLastPost
refreshParticipantsCount
rename
restore
setLastPost
setStartPost
setStateUser
setTitleAttribute
start
startPost
startUser
state
stateFor