Multiple lines of description on Text Column?
I have a Users resource with a text column for a user's name. I then use the
description()
method to display the user's email under the name. I'd like to have yet another line for the user's phone number. Is there a way to achieve this without a custom column?Solution:Jump to solution
```php
->description(fn(YourModel $record):Htmlable => new HtmlString("
<div>{$record->email}</div>
<div>{$record->phone_number}</div>
")...
2 Replies
Solution
Thank you! I now can find examples of using
HtmlString
in the docs for InfoList, Forms.. Though it is not listed for Tables. I just didn't know what to look for.