Apr 17, 2022
0
Level 1
How to insert a break in a Nova table?
Hi all,
while playing around with Nova tables I tried to list all roles of a user in the table for the User resource using that code:
Text::make('Roles', function () {
if($this->roles->count() > 0) {
$roles = '';
foreach($this->roles as $role) {
$roles .= $role->name . '<br>';
}
return $roles;
} else {
return 'No Roles';
}
Unfortunately, it returns in cleartext/ not-interpreted.
Likely I am missing some easy clue but I cannot think of it. I appreciate every remark, thank you!
Please or to participate in this conversation.