Skip to content

Instantly share code, notes, and snippets.

@wilbur-yu
wilbur-yu / Laravel_validation.php
Created January 13, 2016 06:17
Localization Validation Message For Chineses With Laravel 5
<?php
return [
'unique' => ':attribute 已存在',
'accepted' => ':attribute 是被接受的',
'active_url' => ':attribute 必须是一个合法的 URL',
'after' => ':attribute 必须是 :date 之后的一个日期',
'alpha' => ':attribute 必须全部由字母字符构成。',
'alpha_dash' => ':attribute 必须全部由字母、数字、中划线或下划线字符构成',