Since Nova now includes asHtml()
Meta on the Text field (as of v1.0.9), there is no more need for this package as same functionality can be achieved with core Text field.
The default text field in nova doesn't wrap, this causes table to become very wide. By using this field you can either wrap after set number of characters or by splitting the text by a specified marker.
How it looks with regular text field:
How it looks with text wrap field:
Install the package into a Laravel app that uses Nova with Composer:
composer require treestoneit/text-wrap
Add the field to your resource in the fields
method:
use Treestoneit\TextWrap\TextWrap;
...
...
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:
use Treestoneit\TextWrap\TextWrap;
...
...
TextWrap::make('Product Name')->wrapMethod('explode','-*-'),
Please note: Only Index version of the field is configured to wrap