lundi 30 mars 2020

Laravel concatenate src link with variables values

I need to dynamically complete google maps static URL with values from 2 variables.

The basic URL is:

<img src="http://maps.googleapis.com/maps/api/staticmap?center=LATITUDE,LONGITUD&zoom=12&size=400x400&key=APIKEY">

And I need to pass the following to variable to the URL replacing LATITUDE and LONGITUD:

{!! $property->prop_latitud !!}
{!! $property->prop_longitud !!

Can anyone can help me?

Regards



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3ax7Xpk
via IFTTT

Aucun commentaire:

Enregistrer un commentaire