mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 05:54:34 +02:00
Better errors handling for TwoFAccount controller
This commit is contained in:
@ -24,7 +24,7 @@ class IconController extends Controller
|
||||
]);
|
||||
|
||||
if ($validator->fails()) {
|
||||
return response()->json(['error' => $validator->errors()], 400);
|
||||
return response()->json(['validation' => $validator->errors()], 400);
|
||||
}
|
||||
|
||||
$path = $request->file('icon')->storePublicly('public/icons');
|
||||
|
Reference in New Issue
Block a user