Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with L5.4 (Validation) #121

Open
demogar opened this issue Mar 9, 2017 · 0 comments
Open

Issue with L5.4 (Validation) #121

demogar opened this issue Mar 9, 2017 · 0 comments

Comments

@demogar
Copy link

demogar commented Mar 9, 2017

When using a validation similar to this:

// ...
'picture' => 'image|max:1500',
//...

It gives an error like this one:

ErrorException: mb_strlen() expects parameter 1 to be string, object given

.../framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php:1344
.../framework/src/Illuminate/Validation/Concerns/ValidatesAttributes.php:895
.../framework/src/Illuminate/Validation/Validator.php:338
.../framework/src/Illuminate/Validation/Validator.php:253
.../framework/src/Illuminate/Validation/Validator.php:604

This is because, on ValidatesAttributes.php:1344 it expects a string, but it receives an ECodesleeve\Stapler\Attachment Object

Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant