You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using pipeline character ( | ) in rules regex validation will break the rules, following Laravel 5.5 doc using array instead of one line is not working
Eg.
this will break: $form->text('test')->rules('required|regex:/^(AB|CD){2}[0-9]{4}$/');
this does not work: $form->text('test')->rules(array('required', 'regex:/^(AB|CD){2}[0-9]{4}$/'));
The text was updated successfully, but these errors were encountered:
using pipeline character ( | ) in rules regex validation will break the rules, following Laravel 5.5 doc using array instead of one line is not working
Eg.
this will break:
$form->text('test')->rules('required|regex:/^(AB|CD){2}[0-9]{4}$ /');
this does not work:
$form->text('test')->rules(array('required', 'regex:/^(AB|CD){2}[0-9]{4}$ /'));
The text was updated successfully, but these errors were encountered: