Please format your code by adding ``` on the line before it. You can edit the post
Sep 9, 2022
3
Level 2
want to convert api input fields validation to arabic.
I want to covert the validation messages to arabic in laravel api . Here is my code. $validator = Validator::make($request->all(), [ 'phone' => 'required|min:8|max:15|regex:/^[+?\d\s]*$/', 'code' => 'required', ]); if ($validator->fails()) { return $this->responseApi($validator->messages()->all(), false, 'Validation Errors', 400); }
Please suggest a solution to this problem.
Please or to participate in this conversation.