Skip to content

Commit 43073e8

Browse files
authored
add dot notation support to all custom attributes options
1 parent bd71c2d commit 43073e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/includes/_body.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class="{{ $this->setTableDataClass($column->attribute, Arr::get($model->toArray(
4141
@else
4242
@if ($column->isHtml())
4343
@if ($column->isCustomAttribute())
44-
{{ new \Illuminate\Support\HtmlString($model->{$column->attribute}) }}
44+
{{ new \Illuminate\Support\HtmlString(data_get($model, $column->attribute)) }}
4545
@else
4646
{{ new \Illuminate\Support\HtmlString(Arr::get($model->toArray(), $column->attribute)) }}
4747
@endif
4848
@elseif ($column->isUnescaped())
4949
@if ($column->isCustomAttribute())
50-
{!! $model->{$column->attribute} !!}
50+
{!! data_get($model, $column->attribute) !!}
5151
@else
5252
{!! Arr::get($model->toArray(), $column->attribute) !!}
5353
@endif

0 commit comments

Comments
 (0)