-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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. | ||
|
||
|
@@ -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 | ||
|
@@ -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. | ||
|
||
|