[李景山php]每天laravel-20161006|Validator.php-6
来源:互联网 发布:fm2017数据分析师 编辑:程序博客网 时间:2024/05/16 10:12
/** * Validate that an attribute is different from another attribute. * * @param string $attribute * @param mixed $value * @param array $parameters * @return bool */ protected function validateDifferent($attribute, $value, $parameters) { $this->requireParameterCount(1, $parameters, 'different');// require Parameter Count $other = Arr::get($this->data, $parameters[0]);//Arr::get(data,) return isset($other) && $value !== $other;//return value }// Validate that an attribute is different from another attribute /** * Validate that an attribute was "accepted". * * This validation rule implies the attribute is "required". * * @param string $attribute * @param mixed $value * @return bool */ protected function validateAccepted($attribute, $value) { $acceptable = ['yes', 'on', '1', 1, true, 'true']; return $this->validateRequired($attribute, $value) && in_array($value, $acceptable, true); }//Validate that an attribute was "accepted" // change every thing it is ok!
0 0
- [李景山php]每天laravel-20161006|Validator.php-6
- [李景山php]每天laravel-20161001|Validator.php-1
- [李景山php]每天laravel-20161002|Validator.php-2
- [李景山php]每天laravel-20161003|Validator.php-3
- [李景山php]每天laravel-20161004|Validator.php-4
- [李景山php]每天laravel-20161005|Validator.php-5
- [李景山php]每天laravel-20161007|Validator.php-7
- [李景山php]每天laravel-20161008|Validator.php-8
- [李景山php]每天laravel-20161009|Validator.php-9
- [李景山php]每天laravel-20161010|Validator.php-10
- [李景山php]每天laravel-20161011|Validator.php-11
- [李景山php]每天laravel-20161012|Validator.php-12
- [李景山php]每天laravel-20161013|Validator.php-13
- [李景山php]每天laravel-20161014|Validator.php-14
- [李景山php]每天laravel-20160906|Dispatcher-6
- [李景山php]每天laravel-20160922|RedisServicProvider.php
- [李景山php]每天laravel-20160923|Hub.php
- [李景山php]每天laravel-20160924|PiplineServiceProvider.php
- Android微信支付的errCode=-1
- Socket DEMO
- 一个由多线程而引发内存溢出故障的案例分析
- javascript中浏览器控制台console.log 输出图片,彩色字体,文字
- android 如何监听自身应用被卸载
- [李景山php]每天laravel-20161006|Validator.php-6
- Linux中wait用法
- 图表插件ECharts的上手教程
- POJ 完整分类
- windows进程共享内存技术
- idea注册
- linux下socket 编程常用头文件
- 基于NanoPi的光感传感器驱动开发
- 如何在R上配置RODBC