I have some session data that populates a form which I am then trying to validate. However when the validation fails and I'm redirected back to the form, the data is no longer there. How do I keep the form data when the validation fails?
Old data is automatically flashed into the session on validation failure. You can get it using the old() helper in the Blade template. Maybe if you utilise this feature to flash those inputs inside the getBookDetails method in the first instance, you can lean on the old() helper in both cases: