mercredi 14 novembre 2018

Laravel Render external url as route content

Let's say I am an "advertisings distributor" and I have in my web site a route located at /my_ads/{brand} which name parameter is corresponding to one my of customers brand name such as Asus or Toyota.

If I want the route my_ads/asus to display the content of external URL like "https://www.asus.com", how can I do?

In pure PHP, CURL would be a solution but is there a proper way of doing so in Laravel?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire