What are differences between
$request->query()
And
$request->input() in Laravel?
Both of them return the same result.
It's mentioned directly in the official documentation:
While the input method retrieves values from entire request payload (including the query string), the query method will only retrieve values from the query string:
https://laravel.com/docs/5.5/requests
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