Yandex Maps Embed
Installation
Required composer dependency:, (*1)
composer require "tarik02/yandex-maps-embed"
Register ServiceProvider(add it to config/app.php):, (*2)
Tarik02\YandexMapsEmbed\Providers\YandexMapsEmbedServiceProvider::class,
Usage
$name
is parsed name.
$options
is options for frame(['width' => 560, 'height' => 400]
)., (*3)
Get name:, (*4)
$name = yandex_map_parse($string); // Using helper
$name = YandexMapEmbed::parse($string); // Using facade
Show frame:, (*5)
@yandexMap($name, $options)
{{ yandex_map_make($name, $options) }}
{{ YandexMapEmbed::make($name, $options) }}