fix: return json
This commit is contained in:
parent
d106ba956a
commit
3c0a6007d0
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue