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