typicms/places
最新稳定版本:16.1.0
Composer 安装命令:
composer require typicms/places
包简介
README 文档
README
Manage places and show them on a map.
Installation
- Require the package using composer:
composer require typicms/places
- Add the service provider in your config/app.php file:
'providers' => [
/*
* TypiCMS Modules Service Providers.
*/
TypiCMS\Modules\Places\Providers\ModuleServiceProvider::class,
];
- Publish files from this module to your project, run:
php artisan vendor:publish --provider="TypiCMS\Modules\Places\Providers\ModuleServiceProvider"
- Run the migration:
php artisan migrate
-
Set a Google Maps API key in your .env file. See Google Maps Platform.
-
Install @googlemaps/markerclusterer and :
bun add @googlemaps/markerclusterer --dev bun add @types/google.maps --dev
- Uncomment the following lines in
/resources/js/public.js:
import initMap from './public/map'; window.initMap = initMap;
- Add this line to the
/resources/scss/public.scssfile:
@import 'public/map';
-
Run
bun run devto compile the assets. -
Connect to the admin panel, add some places, create a page linked to the module Places and visit this page to see the places on a map.
This module is part of TypiCMS, a multilingual CMS based on the Laravel framework.
统计信息
- 总下载量: 431
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-30