Example #1
0
 protected function validator()
 {
     return parent::validator()->in(['car', 'bike']);
 }
Example #2
0
 public function serialize(AbstractSingleValue $object)
 {
     return $object->value();
 }
Example #3
0
 protected function validator()
 {
     return parent::validator()->Date()->length(11, null);
 }
Example #4
0
 protected function validator()
 {
     return parent::validator()->regex('/([a-f\\d]{8}(-[a-f\\d]{4}){3}-[a-f\\d]{12}?)/i');
 }