Skip to content
This repository was archived by the owner on Jul 10, 2021. It is now read-only.
This repository was archived by the owner on Jul 10, 2021. It is now read-only.

کار نکردن تابع messages #70

Description

@voicerecordist

من یک ریکوئست درست کردم به این شکل:
`<?php

namespace App\Http\Requests\Backend;

use Illuminate\Foundation\Http\FormRequest;

class SchoolCreateRequest extends FormRequest
{
public function authorize()
{
return true;
}

public function rules()
{
    return [
        'name'=>'required|persian_alpha|min:3',
    ];
}

public function messages()
{
    return [
        'name.required'=>'لطفا نام مدرسه را وارد کنید',
        'name.persian_alpha'=>'لطفا نام مدرسه را به زبان فارسی وارد کنید',
        'name.min'=>'نام مدرسه باید بیش از 3 کاراکتر باشد'
    ];
}

}
`
ولی پیامی که در تابع messages برای persian_alpha تعریف کردم نشون داده نمیشه و فقط متن انگلیسی نمایش داده میشه
مشکل کجاست؟

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions