当请求无效时,返回此响应:
{
"message": "name را وارد کنید (and 2 more errors)",
"errors": {
"name": [
"name را وارد کنید"
],
"phone": [
"phone را وارد کنید"
],
"password": [
我的网站有三种语言‘英语’,‘波斯语’,‘阿拉伯语’。
例如:
在Request中
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return