<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Http\Requests;use Illuminate\Foundation\Http\FormRequest;class PageUpdateRequest extends FormRequest{public function authorize(){return true;}public function rules(){$P2gAC0=array();$P2g0='required|max:255|unique:pages,title,' . $this->get('id');$P2g1=$P2g0 . ',id';$P2gAC0['title']=$P2g1;$P2g2='required|max:50|unique:pages,slug,' . $this->get('id');$P2g3=$P2g2 . ',id';$P2gAC0['slug']=$P2g3;$P2gAC0['content']='required';return $P2gAC0;}public function messages(){$P2gAC0=array();$P2gAC0['title.required']='请填写页面名称';$P2gAC0['title.max']='页面名称最大长度为255';$P2gAC0['title.unique']='该页面名称已存在';$P2gAC0['slug.required']='请填写页面标识';$P2gAC0['slug.max']='页面标识最大长度为50';$P2gAC0['slug.unique']='该页面标识已存在';$P2gAC0['content.required']='请填写内容';$P2gAC0['sort.required']='请填写排序值';return $P2gAC0;}}
?>