Skip to content

Commit ebd8e09

Browse files
committed
extracts just the field name from primaryKey in case the primaryKey is using a table name / alias / relation
1 parent 7829f0e commit ebd8e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/tailwind/includes/table.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
9999
<div class="flex rounded-md shadow-sm">
100100
<input
101101
wire:model="selected"
102-
value="{{ $row->{$primaryKey} }}"
102+
value="{{ $row->{\Rappasoft\LaravelLivewireTables\Utilities\ColumnUtilities::parseField($primaryKey)} }}"
103103
onclick="event.stopPropagation();return true;"
104104
type="checkbox"
105105
class="rounded-md shadow-sm border-gray-300 block transition duration-150 ease-in-out sm:text-sm sm:leading-5"

0 commit comments

Comments
 (0)