Access inputs via properties. If not found as an input, the route parameters will be checked.
$name = $request->name;