trim potential spaces
This commit is contained in:
parent
d9c61fdb02
commit
fb28882f65
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ class ValidationServiceProvider extends ServiceProvider
|
||||||
}
|
}
|
||||||
// for legacy, allows users to submit a comma separated string of options
|
// for legacy, allows users to submit a comma separated string of options
|
||||||
elseif(!is_array($value)) {
|
elseif(!is_array($value)) {
|
||||||
$exploded = explode(',', $value);
|
$exploded = array_map('trim', explode(',', $value));
|
||||||
$invalid = array_diff($exploded, $options);
|
$invalid = array_diff($exploded, $options);
|
||||||
if(count($invalid) > 0) {
|
if(count($invalid) > 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue