dimanche 14 octobre 2018

Mask URL with redirect page Laravel

I have external (affiliate) links in my DB.

I want to create a function that 'masks' these URL's and shows a 'redirecting page'.

So for example; I have a link that goes to: "https://google.com/search=sdfsdf". But when a user clicks to go that page it first shows "mydomain.com/redirect/google". It shows it for 2 seconds. And then it goes to the first URL.

I want to generate these pages from my CRUD controller.

Where do I start? Are there functions for this in Laravel?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire