mirror of
https://github.com/wearepixel/laravel-comments.git
synced 2026-11-14 22:12:35 +00:00
Merge pull request #6 from nickbyte/master
Adding method for disapproving a comment
This commit is contained in:
@@ -44,6 +44,15 @@ class Comment extends Model
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function disapprove()
|
||||||
|
{
|
||||||
|
$this->update([
|
||||||
|
'is_approved' => false,
|
||||||
|
]);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
protected function getAuthModelName()
|
protected function getAuthModelName()
|
||||||
{
|
{
|
||||||
if (config('comments.user_model')) {
|
if (config('comments.user_model')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user