0

I need to check if user went to certain routes from my site or from other site and execute logic that depends on site user came from. I tried to do something like this

if( redirect()->back()->getTargetUrl() === '***') {

}

but it returns http://localhost:8080 instead of real site I went to localhost from

randomdude
  • 173
  • 2
  • 7

1 Answers1

0

It will be better if you combined that solution of yours(the one giving your localhost url) and with the tracking of the client's(public) IP address? For more you may follow the following discussions:

  1. Link 1
  2. Link 2
  3. Link 3
  4. Link 4
  5. Link 5
  6. Link 6
Pitson Josiah
  • 36
  • 1
  • 5