Skip to content

Commit

Permalink
Merge pull request #3 from AbdullahGhanem/update-readme
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
AbdullahGhanem authored Dec 12, 2023
2 parents 5c53b1b + 7caece7 commit 17b0d2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ GMAPS_API_KEY=############################
Add the use declaration to your resource and use the fields:

```php
use Ghanem\GoogleMap\TRMap;
use Ghanem\GoogleMap\GHMap;

TRMap::make('Map'), // Google Map with address picker
GHMap::make('Map'), // Google Map with address picker
```

![Image of character counter](docs/screenshot-fields.png)
Expand All @@ -42,7 +42,7 @@ TRMap::make('Map'), // Google Map with address picker
Add custom latitude, longitude and zoom values for starting point

```php
TRMap::make('Map')
GHMap::make('Map')
->latitude('latitude_field_name')
->longitude('longitude_field_name')
->zoom('zoom'),
Expand All @@ -51,7 +51,7 @@ TRMap::make('Map')
Hide latitude and longitude field

```php
TRMap::make('Map')
GHMap::make('Map')
->hideLatitude()
->hideLongitude(),
```
Expand Down

0 comments on commit 17b0d2f

Please sign in to comment.