How we know Redirect::to not working in Controller if it's called by ajax.
Then we need to redirect from ajax callback with
window.location.replace("{{ URL::to('link') }}");
or just link if we are not in blade
window.location.replace("link");
But what to do if I need to redirect with message? Usually i would do it like this:
return Redirect::to('link')->with('success','Success message' );
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1hDqTXr
via IFTTT
Aucun commentaire:
Enregistrer un commentaire