Skip to content

Instantly share code, notes, and snippets.

@MurryWong
MurryWong / Install wkhtmltopdf on CentOS7
Last active October 24, 2018 11:18 — forked from paulsturgess/Install wkhtmltopdf on CentOS7
在 CentOS7 下安装 wkhtmltopdf
// 先所需文件
yum install -y libpng
yum install -y libjpeg
yum install -y openssl
yum install -y icu
yum install -y libX11
yum install -y libXext
yum install -y libXrender
yum install -y xorg-x11-fonts-Type1
yum install -y xorg-x11-fonts-75dpi
@MurryWong
MurryWong / Laravel_validation.php
Created July 15, 2017 02:24
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 必须全部由字母、数字、中划线或下划线字符构成',
@MurryWong
MurryWong / validation.php
Created July 15, 2017 02:17 — forked from chareice/validation.php
Localization Validation Message For Chineses With Laravel 5
<?php
use Symfony\Component\Yaml\Yaml;
return Yaml::parse(file_get_contents(base_path().'/resources/lang/zh_cn/validation.yml'));
@MurryWong
MurryWong / Laravel_validation.php
Created July 15, 2017 02:16 — forked from quericy/Laravel_validation.php
Localization Validation Message For Chineses With Laravel 5
<?php
/* Last Update : 20170208 ,Laravel 5.3 */
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by