Esempio n. 1
0
 public function checkNameAvailable($name, $request)
 {
     $data = [];
     $data['available'] = UserChannel::isNameFree($name) && User::isNameFree($name);
     return new JsonResponse($data);
 }