required controlled for group components

This commit is contained in:
Burak Civan
2022-07-06 15:04:26 +03:00
parent 5b896be3ba
commit 0542c985b6
10 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
<label class="text-black text-sm font-medium" {{ $attributes }}>
{!! $slot !!}
@if ($attributes->has('required'))
@if ($attributes->has('required') && $attributes->get('required') === true)
<span class="text-red ltr:ml-1 rtl:mr-1">*</span>
@endif
</label>