Do you know withInput() and Validation errors? |
redirect()->withInput() and Validation errors have an undocumented behavior.
If you redirect with withInput(): PHP Code: if (! $this->validate($rules)) { You can use the Validation object with the validation errors in the previous page. PHP Code: <?= service('Validation')->listErrors() ?> But this feature has bugs or design flaw. So I would like to remove the feature, and add a new helper function to get the validation errors. Any opinion? |
Messages In This Thread |
Do you know withInput() and Validation errors? - by kenjis - 08-16-2022, 10:18 PM
RE: Do you know withInput() and Validation errors? - by luckmoshy - 08-16-2022, 11:57 PM
RE: Do you know withInput() and Validation errors? - by InsiteFX - 08-17-2022, 12:36 AM
RE: Do you know withInput() and Validation errors? - by kenjis - 08-17-2022, 05:21 PM
RE: Do you know withInput() and Validation errors? - by luckmoshy - 08-17-2022, 11:13 PM
RE: Do you know withInput() and Validation errors? - by kenjis - 08-31-2022, 01:21 AM
RE: Do you know withInput() and Validation errors? - by kenjis - 10-16-2022, 04:40 PM
RE: Do you know withInput() and Validation errors? - by InsiteFX - 10-17-2022, 01:00 AM
|