Skip to content

Commit

Permalink
Updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bissolli committed Nov 12, 2018
1 parent 41bce5d commit 35abc52
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ Add to your Laravel Nova app a Global Phone Number field.

## Requirements

Laravel Nova, of course =).
That's it.
Laravel Nova, only =)

## Installation

Expand Down Expand Up @@ -47,7 +46,7 @@ class Member extends Resource

Now you can view and add tags on the blog posts screen in your Nova app. All tags will be saved in the `tags` table.

## Filtering countries
### Filtering

By default, every country mask available inside `bissolli/nova-phone-field/resources/js/data/phone-masks.json` will be loaded and working, however you can always select the desired countries calling the `onlyCountries()` method.

Expand All @@ -56,6 +55,8 @@ PhoneNumber::make('Phone Number')
->onlyCountries('BR', 'US', 'IE'),
```

### Custom number format

You can also add custom phone formats with `withCustomFormats()`.

```php
Expand All @@ -71,19 +72,19 @@ PhoneNumber::make('Phone Number')
->onlyCustomFormats(),
```

### Testing
## Testing

To be implemented

### Changelog
## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security
## Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Expand Down

0 comments on commit 35abc52

Please sign in to comment.