Support the ongoing development of →
Testing Laravel
Last updated by @arielenter 1 year ago.

After a few minutes of more meddling I found out it appears that, when sending some other value other than a string through phpunit ,the validation "required" seems to suggest that the value is taken as not being sent at all, which makes me believe that "post" request can only use strings. If so, then it's easy to understand why a test like the one I was suggesting wouldn't be necessary.

Last updated 1 year ago.
Solution selected by @arielenter

Sign in to participate in this thread!


Your banner here too?

arielenter arielenter Joined 11 Oct 2022


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.