PHP code example of weiwait / dcat-distpicker
1. Go to this page and download the library: Download weiwait/dcat-distpicker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
weiwait / dcat-distpicker example snippets
$form->distpicker(['province', 'city', 'district'], 'label')
->detail('detail') // 使用地址详细
->coordinate(['longitude', 'latitude']) // 使用经度纬度坐标
->height(500) // 设置地图高度 默认300
->disableMap(); // 关闭地图
shell
php artisan vendor:publish --tag=weiwait.dcat-distpicker
shell
php artisan admin:ide-helper