mercredi 29 mars 2017

withInput() doesn't work

And when I use it with withError(), it does not work either.

This works:

if ($validation->fails()) {
    //////////// Works and return the $errors array
    return redirect()->back()->withErrors($validation);                         
}

This doesn't work:

if ($validation->fails()) {
    return redirect()->back()->withInput();                         
}

This doesn't work too (either for withInput() and for withErrors())

if ($validation->fails()) {
    return redirect()->back()->withInput()->withErrors($validacion);
}

This is symptom of ... what problem?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2o6SPdA
via IFTTT

Aucun commentaire:

Enregistrer un commentaire