Welcome Guest, Not a member yet? Register   Sign In
Handling Multiple input with same field name as array. and show valdiation error
#4

With the code you have, if you print_r or var_dump the errors session variable, you should able to get the "index" associated with the error message. So, your error message display should look something like this:

PHP Code:
<?= session('errors.doc_no.0'?>

Where the 0 indicates the index.
Reply


Messages In This Thread
RE: Handling Multiple input with same field name as array. and show valdiation error - by sammyskills - 09-06-2023, 05:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB