Свойство | Тип | Описание | |
---|---|---|---|
$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 |