Property | Type | Description | |
---|---|---|---|
$model | Model | ||
$post | model |
Method | Description | |
---|---|---|
__construct ( |
CommentRepository constructor. | |
all ( $n ) : mixed | Get all comments. | |
destroy ( $id ) | ||
getById ( $id ) : mixed | Get comment by given id. | |
store ( $input ) | Store a new comment. | |
toggleStatus ( $id, $column, $value ) | Toggle comment column status. |
public __construct ( |
||
$comment | ||
$post |
public toggleStatus ( $id, $column, $value ) | ||
$id | ||
$column | ||
$value |