post crud fix
This commit is contained in:
@ -34,8 +34,9 @@ class UserService
|
||||
return false;
|
||||
}
|
||||
|
||||
public function check(int $user_id): bool
|
||||
public static function check(int $user_id): bool
|
||||
{
|
||||
|
||||
if (User::where(['id' => $user_id])->first())
|
||||
{
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user