change error message
This commit is contained in:
@@ -100,9 +100,9 @@ class ProfileController extends Controller
|
||||
'max' => 'The :attribute field must be :max digits'
|
||||
]);
|
||||
|
||||
$validationMessage = $this->validationError($validator);
|
||||
if ($validationMessage) {
|
||||
return response()->json(['status' => 400, 'message' => $validationMessage]);
|
||||
// $validationMessage = $this->validationError($validator);
|
||||
if ($validator->fails()) {
|
||||
return response()->json(['status' => 400, 'message' => $validator->errors()]);
|
||||
}
|
||||
|
||||
$user = User::find($request->user()->id);
|
||||
|
||||
Reference in New Issue
Block a user