mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix warning
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user