mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 03:17:23 +08:00
Introduce filament
This commit is contained in:
@@ -115,7 +115,7 @@ class UserRepository extends BaseRepository
|
||||
'class' => $class
|
||||
];
|
||||
$user = new User($data);
|
||||
if ($params['id']) {
|
||||
if (!empty($params['id'])) {
|
||||
if (User::query()->where('id', $params['id'])->exists()) {
|
||||
throw new \InvalidArgumentException("uid: {$params['id']} already exists.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user