| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | <?phpnamespace App\Http\Requests\System;use App\Http\Requests\Request;use Illuminate\Validation\Rule;class ProjectRequest extends Request{    /**     * Determine if the user is authorized to make this request.     *     * @return bool     */    public function authorize()    {        return true;    }    /**     * Get the validation rules that apply to the request.     *     * @return array     */    public function rules()    {        return [            'domain' => 'required',            'ae_id' => 'numeric',            'business_id' => 'numeric',            'title' => 'required',            'cn_title' => 'required',            'en_title' => 'required'        ];    }    public function attributes()    {        return [            'domain' => '域名',            'ae_id' => 'AE人员',            'business_id' => '行业类型',            'title' => '项目名称',            'cn_title' => '企业中文名称',            'en_title' => '企业英文名称'        ];    }}
 |