File tree Expand file tree Collapse file tree 1 file changed +1
-37
lines changed
src/Illuminate/Foundation/Http Expand file tree Collapse file tree 1 file changed +1
-37
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,6 @@ class FormRequest extends Request implements ValidatesWhenResolved {
2828 */
2929 protected $ redirector ;
3030
31- /**
32- * The sanitized input.
33- *
34- * @var array
35- */
36- protected $ sanitized ;
37-
3831 /**
3932 * The URI to redirect to if validation fails.
4033 *
@@ -85,39 +78,10 @@ protected function getValidatorInstance()
8578 }
8679
8780 return $ factory ->make (
88- $ this ->sanitizeInput (), $ this ->container ->call ([$ this , 'rules ' ]), $ this ->messages ()
81+ $ this ->all (), $ this ->container ->call ([$ this , 'rules ' ]), $ this ->messages ()
8982 );
9083 }
9184
92- /**
93- * Sanitize the input.
94- *
95- * @return array
96- */
97- protected function sanitizeInput ()
98- {
99- if (method_exists ($ this , 'sanitize ' ))
100- {
101- return $ this ->sanitized = $ this ->container ->call ([$ this , 'sanitize ' ]);
102- }
103-
104- return $ this ->all ();
105- }
106-
107- /**
108- * Get sanitized input.
109- *
110- * @param string $key
111- * @param mixed $default
112- * @return mixed
113- */
114- public function sanitized ($ key = null , $ default = null )
115- {
116- $ input = is_null ($ this ->sanitized ) ? $ this ->all () : $ this ->sanitized ;
117-
118- return array_get ($ input , $ key , $ default );
119- }
120-
12185 /**
12286 * Handle a failed validation attempt.
12387 *
You can’t perform that action at this time.
0 commit comments