Skip to content

Commit

Permalink
no longer necessary to add onlyOnIndex()
Browse files Browse the repository at this point in the history
  • Loading branch information
bomshteyn committed Aug 31, 2018
1 parent 1481c02 commit d3b86d8
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 @@ -26,7 +26,7 @@ Add the field to your resource in the ```fields``` method:
use Treestoneit\TextWrap\TextWrap;
...
...
TextWrap::make('Product Name')->wrapMethod('length',40)->onlyOnIndex(),
TextWrap::make('Product Name')->wrapMethod('length',40),
```

If you would like to use the wrap through spliting the text by marker, here is an example:
Expand All @@ -35,7 +35,7 @@ If you would like to use the wrap through spliting the text by marker, here is a
use Treestoneit\TextWrap\TextWrap;
...
...
TextWrap::make('Product Name')->wrapMethod('explode','-*-')->onlyOnIndex(),
TextWrap::make('Product Name')->wrapMethod('explode','-*-'),
```

Please note: _Only Index version of the field is configured to wrap_

0 comments on commit d3b86d8

Please sign in to comment.