add mutators to jsonb columns
This commit is contained in:
@@ -18,9 +18,8 @@
|
||||
<tbody>
|
||||
@foreach($rows as $row)
|
||||
<tr>
|
||||
@php($rdata = json_decode($row['data'], true))
|
||||
@foreach($columns as $col)
|
||||
<td data-id="{{ $row->id }}">{{ $rdata[$col->name] }}</td>
|
||||
<td data-id="{{ $row->id }}">{{ $row['data']->{$col->name} }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user