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

پیام اعتبارسنجی دلخواه #46

Closed
mgh145 opened this issue Apr 27, 2017 · 1 comment
Closed

پیام اعتبارسنجی دلخواه #46

mgh145 opened this issue Apr 27, 2017 · 1 comment

Comments

@mgh145
Copy link

mgh145 commented Apr 27, 2017

موقع استفاده از پیام های اعتبارسنجی دلخواه در لاراول 5.3 پیام ها همچنان از فایل زبان که توسط پکیج نصب شده خونده میشه. لطفا بررسی کنید

$rules = [
'name' => 'required|persian_alpha',
'family' => 'required|persian_alpha'
];

$messages = [
'name.persian_alpha' => 'نام باید فارسی باشد',
'family.persian_alpha' => 'نام خانوادگی باید فارسی باشد'
];

$validator = Validator::make($request->all(),$rules,$messages);

@shahrokhniakan
Copy link
Contributor

@mgh145 Hello dear, If you want use your custom messages you should run ( vendor:publish ) command to have custom messages of package on this path ( resources/lang/validation ) and you can change messages.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants