jeudi 29 octobre 2015

Laravel Redirect when Middleware Process checking

I am developing a laravel web application of business directory.

here is my scenario.

  1. http://localhost/genie-works/devojp/customer // user searching with keyword of business and

  2. Showing results in http://localhost/genie-works/devojp/customer/search-result?keyword=apple&searchcity=1 this page.

  3. here listing too many business data with post an enquiry feature.

  4. when clicking on the post an enquiry button page goes to http://localhost/genie-works/devojp/customer/post-enquiry/{bisinjessid}/

  5. the post enquiry page checking a middle-ware as authentication.

  6. when user not logged in the middleware redirect to login page http://localhost/genie-works/devojp/customer and showing the login form

  7. after entering login details its needs to redirect to http://localhost/genie-works/devojp/customer/post-enquiry/{bisinjessid}/ this page.

  8. but i tried the function Redirect::back its redirecting to customers page (http://localhost/genie-works/devojp/customer)

    How can i solve this issue by redirecting to my last page....

Thanks



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

Aucun commentaire:

Enregistrer un commentaire