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

Middleware ConvertEmptyStringsToNull have problem #18428

Closed
lucastruong opened this issue Mar 20, 2017 · 1 comment
Closed

Middleware ConvertEmptyStringsToNull have problem #18428

lucastruong opened this issue Mar 20, 2017 · 1 comment

Comments

@lucastruong
Copy link

lucastruong commented Mar 20, 2017

  • Laravel Version: 5.4.15
  • PHP Version: 7
  • Database Driver & Version: N/A

Description:

Create a rules
Rules: [ 'link' => 'url' ]

Case 1:
Input: [ 'link' => null ]
Result: fail, The link format is invalid.
Expect: pass

Case 2:
Input: [ 'link' => '' ]
Result: pass
Expect: pass

Notes

Maybe problem with the \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull

@ankurk91
Copy link
Contributor

See #17663

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

3 participants