Skip to content

Commit

Permalink
update docs to match screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbs committed Aug 27, 2018
1 parent 7a5e2a0 commit 2d40fd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add the field to your resource in the ```fields``` method:
```php
use Inspheric\Fields\Url;

Url::make('Url')
Url::make('Homepage')
->rules('url', /* ... */),
```

Expand All @@ -31,7 +31,7 @@ It is recommended that you include the standard `url` and/or `active_url` valida
Make the field display with a label instead of the URL value itself on the detail or index pages:

```php
Url::make('Url')
Url::make('Homepage')
->label('External Link'),
```

Expand All @@ -41,15 +41,15 @@ The label is only displayed if the link is clickable, otherwise the URL value is
Make the field display as a link on the detail page:

```php
Url::make('Url')
Url::make('Homepage')
->clickable(),
```

#### Clickable on Index
Make the field display as a link on the index page:

```php
Url::make('Url')
Url::make('Homepage')
->clickableOnIndex(),
```

Expand Down

0 comments on commit 2d40fd0

Please sign in to comment.