PHPackages                             dhamkith/googlemap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dhamkith/googlemap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dhamkith/googlemap
==================

add google map latitude longitude, in laravel framwork

17842PHP

Since Jul 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dhamkith/googlemap)[ Packagist](https://packagist.org/packages/dhamkith/googlemap)[ RSS](/packages/dhamkith-googlemap/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel googlemap: storing google map latitude, longitude for maps.googleapis
=============================================================================

[](#laravel-googlemap-storing-google-map-latitude-longitude-for-mapsgoogleapis)

This package support Laravel Framework 7.4.0, so if you are working on a Laravel 7.4.0 project, then you can use this package.

Installation
------------

[](#installation)

Installation is straightforward, setup is similar to every other Laravel Package.

#### 1. Install via Composer

[](#1-install-via-composer)

Begin by pulling in the package through Composer:

```
composer require dhamkith/googlemap

```

#### 2. Define the Service Provider

[](#2-define-the-service-provider)

Next we need to pull in the service providers.

**Note:** This package supports the new *auto-discovery* features of Laravel 7.4, so if you are working on a Laravel 7.4 project, then your install is complete, you can skip to step 3.

If is not work then you need to add a provider. Inside of your `config/app.php` define a new service provider

```
'providers' => [
	//  other providers

	Dhamkith\Googlemap\GooglemapServiceProvider::class,
];

```

#### 3. Publish Config File and Other Resources (OPTIONAL)

[](#3-publish-config-file-and-other-resources-optional)

The config file allows you to override default settings of this package to meet your specific needs. It is optional and allows you to set a

- Set Gooogle Apikey - `"google_api_key" => "api key"` (OPTIONAL),
- URL path - `"path" => "map"`,
- middleware for GoogleMapController - `"middleware_for_view" => "auth"`,
- `"auth"` is defalt middleware You can override this value if,
- your application suported Multiple Authentication you can change to `"auth:admin"`

To generate a config file and other resources type this command into your terminal:

```
php artisan vendor:publish --tag=googlemap

```

This generates

- a config file at `config/googlemap.php`.
- a view file at `resources/views/vendor/googlemap/all.blade.php`.
- a view file at `resources/views/vendor/googlemap/create.blade.php`.
- a view file at `resources/views/vendor/googlemap/edit.blade.php`.
- a view file at `resources/views/vendor/googlemap/view.blade.php`.
- a style file at `public/css/googlemap.css`.
- a javascript file at `public/js/googlemap.js`.

#### 4. Migrate (OPTIONAL)

[](#4-migrate-optional)

php artisan migrate for create locations table

```
php artisan migrate

```

Usage
-----

[](#usage)

This package is easy to use. It provides a handful of helpful View components.

- `` component for display all store data,
- `` component for create from,
- `` component for edit from,
- `` component for display google map,

#### 1. add style and javascript file

[](#1-add-style-and-javascript-file)

adding googlemap.css stylesheet tag to 'app' or other layout, in head section

```

```

adding googlemap.js and googleapis link script tag in body section

```

```

#### 2. extends views

[](#2-extends-views)

extends views `all, create, edit, view`

**Example:** view locations `resources/views/vendor/googlemap/create.blade.php`

```
@extends('layouts.app')

@section('content')

@endsection
```

#### 3. use package router

[](#3-use-package-router)

package router names are

###### for display all store data `googlemap.all`

[](#for-display-all-store-data-googlemapall)

```
{{ route('googlemap.all') }}
```

###### for get create from `googlemap.create`

[](#for-get-create-from-googlemapcreate)

```
{{ route('googlemap.create') }}
```

###### for get edit from `googlemap.edit`

[](#for-get-edit-from-googlemapedit)

```
{{ route('googlemap.edit') }}
```

###### for preview google map `googlemap.preview`

[](#for-preview-google-map-googlemappreview)

```
{{ route('googlemap.preview') }}
```

Contribute
----------

[](#contribute)

I encourage you to contribute to this package to improve it and make it better. Even if you don't feel comfortable with coding or submitting a pull-request (PR), you can still support it by submitting issues with bugs or requesting new features, or simply helping discuss existing issues to give us your opinion and shape the progress of this package.

Contact
-------

[](#contact)

I would love to hear from you. I run the dhamkith channel on [YouTube](https://www.youtube.com/user/dhamkith/videos), please subscribe and check out the videos.

You can also email me at  for any other requests.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f2c7e995979bfda110f69b2b8c69df0b451b493f16020a611cc4f31d18c384a?d=identicon)[ishan](/maintainers/ishan)

---

Top Contributors

[![dhamkith](https://avatars.githubusercontent.com/u/64707520?v=4)](https://github.com/dhamkith "dhamkith (6 commits)")

### Embed Badge

![Health badge](/badges/dhamkith-googlemap/health.svg)

```
[![Health](https://phpackages.com/badges/dhamkith-googlemap/health.svg)](https://phpackages.com/packages/dhamkith-googlemap)
```

###  Alternatives

[fusonic/opengraph

PHP library for consuming and publishing Open Graph resources.

104401.8k5](/packages/fusonic-opengraph)[oittaa/uuid

A small PHP class for generating RFC 9562 universally unique identifiers (UUID) from version 3 to version 8.

54324.8k6](/packages/oittaa-uuid)[sylius/taxation

Flexible taxation system for PHP ecommerce applications.

11414.7k12](/packages/sylius-taxation)[formfeed-uk/nova-theming-classes

A Laravel Nova package to add theming classes to components.

12102.5k](/packages/formfeed-uk-nova-theming-classes)[components/ember-data

A data persistence library for Ember.js.

152.7k](/packages/components-ember-data)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
