crud menu
This commit is contained in:
@ -34,16 +34,6 @@ class UserService
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function check(int $user_id): bool
|
||||
{
|
||||
|
||||
if (User::where(['id' => $user_id])->first())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function createUsernameArr(): array
|
||||
{
|
||||
foreach (User::all()->toArray() as $user) {
|
||||
|
Reference in New Issue
Block a user