We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b4f380 commit 5a9651bCopy full SHA for 5a9651b
src/Html/Editor/Fields/Field.php
@@ -395,10 +395,7 @@ public function className(string $className): static
395
*/
396
public function required(bool $required = true): static
397
{
398
- /** @var Field $this */
399
$requiredFieldHtml = $required ? '<span class="text-red-500">*</span>' : '';
400
-
401
- /** @var string $label */
402
$label = $this->get('label');
403
404
return $this->label($label.' '.$requiredFieldHtml);
0 commit comments