Skip to content

Commit

Permalink
tidy readme examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbs committed Apr 12, 2019
1 parent f2b981d commit a81f252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Url::make('Homepage')
->domainLabel(),
```

For example, the label for the field value `https://www.example.com/path?query=value&another=true#fragment` would display simply as `<a href="https://www.example.com/path?query=value&another=true#fragment">example.com</a>`.
For example, the label for the field value `https://www.example.com/path?query=value&another=true#fragment` would display simply as `example.com`.

This is resolved after the `displayUsing()` callback if you have one, so if you modify the display of the URL in some way, the modified value will be passed to this label.

Expand All @@ -71,7 +71,7 @@ Url::make('Homepage')
->nameLabel(),
```

This would be displayed as `<a href="...">Homepage</a>`.
The label would be displayed as `Homepage`.

#### Clickable
Make the field display as a link on the detail page:
Expand Down

0 comments on commit a81f252

Please sign in to comment.