Laravel is trimming whitespace at the beginning of the string. Example:
" this is a test"
Is returning
This is a test
I use Laravels $request->get('name')
When i use $_POST
in the laravel application it is working fine.
Does somebody know how i can achive this with $request->get()
In laravel 5.4, Taylor added the TrimStrings
middleware to default middleware group. So you can remove the \App\Http\Middleware\TrimStrings::class
from the Http\Kernel.php
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With