Property | Type | Description | |
---|---|---|---|
$dates | |||
$primaryKey | |||
$table |
Method | Description | |
---|---|---|
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 | |
return |
public hasReplies ( ) : boolean | ||
return | boolean |
public isApproved ( ) : boolean | ||
return | boolean |
public original ( ) : |
||
return |
public post ( ) : |
||
return |
public replies ( ) : Illuminate\Database\Eloquent\Relations\HasMany | ||
return | Illuminate\Database\Eloquent\Relations\HasMany |