Skip to content

Commit 1aaaab4

Browse files
committed
- Remove name from component attribute
- Rename label as headline such as 'Last Seen'
1 parent 0e06f5c commit 1aaaab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/MaryGenCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private function generateFormFields(string $table, array $columns, string $model
124124
$typeProp = $colName === 'password' ? 'type="password"' : '';
125125
$icon = $this->getIconForColumn($colName);
126126

127-
$fields .= "<x-{$prefix}{$component} name=\"{$colName}\" {$typeProp} wire:model=\"{$colName}\" {$icon} $required label=\"" . Str::title($colName) . "\" />\n";
127+
$fields .= "<x-{$prefix}{$component} {$typeProp} wire:model=\"{$colName}\" {$icon} $required label=\"" . Str::headline($colName) . "\" />\n";
128128
}
129129

130130
return $fields;

0 commit comments

Comments
 (0)