Skip to content

Instantly share code, notes, and snippets.

Avatar

John helloJohnLu

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