Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman authored Jan 17, 2025
1 parent b7caada commit c5bf713
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,23 @@ Location::fake([
]);
```

You may also use an asterisk to fake several IP patterns:

```php
Location::fake([
'192.123.*.*' => Position::make([
'countryName' => 'United States',
'countryCode' => 'US',
// ...
]),
'192.456.*.*' => Position::make([
'countryName' => 'Canada',
'countryCode' => 'CA',
// ...
]),
]);
```

## Drivers

### Available Drivers
Expand Down

0 comments on commit c5bf713

Please sign in to comment.