I'm using the latest Laravel version and handle POST data using the Request and an array $data
to store the data.
public function someFunctionInSomeControllerSomewhere(Request $request) {
$data = $request->all();
// ...
}
Be this good or not (let me know), I wonder if Laravel (since it's incredibly large and feature-rich) already sanitized the input data coming from Request (at least strings) or not. And if not so, I'm looking for a way to automatically sanitize input of type Request
so that in all Controllers and functions, I can straight forwardly use the input data.