0
votes

I will get below mentioned url from 3rd party server..

http://localhost/timespotproject/public/guestacc/chk/defaults/?ids=123e34&ab=00tt&temp=1245678&url=http://test.com%2f&sid=Free+term

When I get this url I have used below mentioned code in routes.php file

Route::get('guestacc/scheck/default/{data}','User@guestcheck');

but it's not redirected.
I have to redirect my action to "User@guestcheck" when i receive above mentioned url... also if I receive any other url without http://localhost/timespotproject/public/guestacc

(ie http://localhost/timespotproject/public/login)

also i have to redirect User@guestcheck

1

1 Answers

0
votes

You have to pass the data chunk like:

http://localhost/timespotproject/public/guestacc/chk/defaults/somedata?ids=123e34&ab=00tt&temp=1245678&url=http://test.com%2f&sid=Free+term

or to get rid of it and remove it form the route if you are just going to use the get params as follows:

Route::get('guestacc/scheck/defaults','User@guestcheck');