Свойство | Type | Description | |
---|---|---|---|
$comment |
Méthode | Description | |
---|---|---|
__construct ( |
||
createComment ( $cmt ) : Illuminate\Database\Eloquent\Model | Create a new comment. | |
deleteComment ( $id ) : boolean | Delete a comment. | |
getCommentById ( $id ) : Illuminate\Database\Eloquent\Model | Get a comment by comment id. | |
updateComment ( $id, $body ) : Illuminate\Database\Eloquent\Model | Update a comment's body. |
public __construct ( |
||
$comment |
public createComment ( $cmt ) : Illuminate\Database\Eloquent\Model | ||
Résultat | Illuminate\Database\Eloquent\Model |
public deleteComment ( $id ) : boolean | ||
$id | int | |
Résultat | boolean |
public getCommentById ( $id ) : Illuminate\Database\Eloquent\Model | ||
$id | int | |
Résultat | Illuminate\Database\Eloquent\Model |
public updateComment ( $id, $body ) : Illuminate\Database\Eloquent\Model | ||
$id | int | |
$body | string | |
Résultat | Illuminate\Database\Eloquent\Model |