From 1a3b8b78e7f74e99d9e879e0254b5e169e4c2235 Mon Sep 17 00:00:00 2001 From: Marcel van Doornen Date: Sun, 24 Mar 2024 13:53:57 +0100 Subject: [PATCH] Allow multiple rating fields in one form (#1) * Update the for and id field attributes with the form field name so you can use multiple start fields * remove unnecessary new method * use id to identify each field --------- Co-authored-by: Mo Khosh --- resources/views/half-stars/component.blade.php | 13 +++++++------ resources/views/simple/component.blade.php | 9 +++++---- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/resources/views/half-stars/component.blade.php b/resources/views/half-stars/component.blade.php index 4784d5e..975469d 100644 --- a/resources/views/half-stars/component.blade.php +++ b/resources/views/half-stars/component.blade.php @@ -1,4 +1,5 @@ @php + $id = $getId(); $isDisabled = $isDisabled(); $color = $getColor(); $colorClass = match ($color) { @@ -42,14 +43,14 @@