fix: return json

This commit is contained in:
b1ek 2024-08-29 19:52:16 +10:00
parent d106ba956a
commit 3c0a6007d0
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ class PublicUserController extends Controller
{
$data = $request->all()['user'];
if (User::where([ 'email' => $data['email'] ])->count() != 0) {
return response('email_taken', 400);
return response()
->json('email_taken', 400);
}
/**