dimanche 25 septembre 2016

Redirect back with 'select' values in Laravel 5

I have searched a lot but didn't find any solution. I have some select box in my HTML form for which I need to keep the old values after redirecting back post input validations.

Here is my redirect code in controller

redirect()->back()->withInput()->withErrors($validator->messages());

I have tried using value= But it only works for inputs and textareas. Any help will be really appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire