PHP code example of nmfzone / google-map-place-detail-laravel
1. Go to this page and download the library: Download nmfzone/google-map-place-detail-laravel 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/ */
nmfzone / google-map-place-detail-laravel example snippets
// config/app.php
'providers' => [
...
NMFCODES\GoogleMapPlaceDetail\GoogleMapPlaceDetailServiceProvider::class,
];
// config/app.php
'aliases' => [
...
'GoogleMapPlaceDetail' => NMFCODES\GoogleMapPlaceDetail\GoogleMapPlaceDetailFacade::class,
];
// bootstrap/app.php
$app->register(NMFCODES\GoogleMapPlaceDetail\GoogleMapPlaceDetailServiceProvider::class);
GoogleMapPlaceDetail::getDetails('ChIJY67epzRYei4R5AnGbv3UNXQ')->getName();
GoogleMapPlaceDetail::getDetails('ChIJY67epzRYei4R5AnGbv3UNXQ')->getProvince();
bash
$ php artisan vendor:publish --provider="NMFCODES\GoogleMapPlaceDetail\GoogleMapPlaceDetail"