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