Closed CrisCrassus closed 3 years ago
<x-maps-leaflet :centerPoint="['lat' => {{$hotel->latitude}}, 'long' => {{$hotel->latitude}}]" :markers="[['lat' => {{$hotel->latitude}}, 'long' => {{$hotel->latitude}}]]" :zoomLevel="15"></x-maps-leaflet>
This is my code
Hi!, Thanks for creating an issue. FYI i believe in the blade tags you dont have to use the {{ and }} to pass data. See this docs sample: https://laravel.com/docs/8.x/blade#passing-data-to-components.
Please let me know if it works by removing them :).
Works now :) thanks
If I try to use blade tags to pull a latitude/longtitude from a DB it doesn't seem to like it. I've checked my syntax and as far as I'm aware it's ok.