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:
```php ->description(fn(YourModel $record):Htmlable => new HtmlString(" <div>{$record->email}</div> <div>{$record->phone_number}</div> ")...
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira8mo ago
->description(fn(YourModel $record):Htmlable => new HtmlString("
<div>{$record->email}</div>
<div>{$record->phone_number}</div>
")
)
->description(fn(YourModel $record):Htmlable => new HtmlString("
<div>{$record->email}</div>
<div>{$record->phone_number}</div>
")
)
eras0030
eras0030OP8mo ago
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.
Want results from more Discord servers?
Add your server