mirror of
https://github.com/wearepixel/laravel-comments.git
synced 2026-11-14 14:02:04 +00:00
Fix deprecation warning
This commit is contained in:
@@ -42,7 +42,7 @@ trait HasComments
|
|||||||
'is_approved' => ($user instanceof Commentator) ? ! $user->needsCommentApproval($this) : false,
|
'is_approved' => ($user instanceof Commentator) ? ! $user->needsCommentApproval($this) : false,
|
||||||
'user_id' => is_null($user) ? null : $user->getKey(),
|
'user_id' => is_null($user) ? null : $user->getKey(),
|
||||||
'commentable_id' => $this->getKey(),
|
'commentable_id' => $this->getKey(),
|
||||||
'commentable_type' => get_class(),
|
'commentable_type' => get_class($this),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $this->comments()->save($comment);
|
return $this->comments()->save($comment);
|
||||||
|
|||||||
Reference in New Issue
Block a user