fix warning

This commit is contained in:
xiaomlove
2021-05-14 11:04:03 +08:00
parent 6d3068eb8c
commit 6c85176e2f
6 changed files with 14 additions and 15 deletions

View File

@@ -158,7 +158,7 @@ class User extends Authenticatable
public function updateWithModComment(array $update, $modComment)
{
if (!$this->exists) {
throw new \RuntimeException('User not exists!');
throw new \RuntimeException('This mehtod only works when user exists!');
}
$update['modcomment'] = DB::raw("concat_ws('\n', $modComment, modcomment)");
return $this->update($update);