Your problem is that Redirect::to issues an HTTP redirect, and AJAX requests don't work that way; effectively, the request sent by javascript is getting redirected, not the page the user is on. You'll want to send back the destination page URL and redirect by javascript instead.
rizqidjamaluddin said:
Your problem is that Redirect::to issues an HTTP redirect, and AJAX requests don't work that way; effectively, the request sent by javascript is getting redirected, not the page the user is on. You'll want to send back the destination page URL and redirect by javascript instead.
Thanks...got it fixed..
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community