프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$dates | |||
$primaryKey | |||
$table |
메소드 | 설명 | |
---|---|---|
findByPostId ( integer $postId ) : |
Find a comment by post ID | |
hasReplies ( ) : boolean | Verify if the current comment has replies | |
isApproved ( ) : boolean | Verify if the current comment is approved | |
isReply ( ) : boolean | Verify if the current comment is a reply from another comment | |
newQuery ( boolean $excludeDeleted = true ) : |
Override the parent newQuery() to the custom CommentBuilder class | |
original ( ) : |
Original relationship | |
post ( ) : |
Post relationship | |
replies ( ) : Illuminate\Database\Eloquent\Relations\HasMany | Replies relationship |
public static findByPostId ( integer $postId ) : |
||
$postId | integer | |
리턴 |
public hasReplies ( ) : boolean | ||
리턴 | boolean |
public isApproved ( ) : boolean | ||
리턴 | boolean |
public original ( ) : |
||
리턴 |
public post ( ) : |
||
리턴 |
public replies ( ) : Illuminate\Database\Eloquent\Relations\HasMany | ||
리턴 | Illuminate\Database\Eloquent\Relations\HasMany |