Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis authored Jul 3, 2024
1 parent 2742163 commit 8a1e08c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ protected function getActions(): array
{
return [
SimpleMap::make('map')
->address('Netherlands, Amsterdam, Mc Donalds'),
->address(fn(Model $record) => $record->address)),
];
}
```

You can add the `SimpleMap` component to any `TextEntry` field.
You can add the `SimpleMap` component to any `TextEntry` field action.

```php
use CodeWithDennis\SimpleMap\Components\Infolists\SimpleMap;

TextEntry::make('address')
->action(
SimpleMap::make('map-2')
->address('Netherlands, Amsterdam, Mc Donalds')
->address(fn(Model $record) => $record->address))
)
```

Expand Down

0 comments on commit 8a1e08c

Please sign in to comment.