fix default name

This commit is contained in:
2024-05-04 14:21:35 +10:00
parent 7b6e17ba40
commit 3358cf8dea
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@
$onchange = $attributes->get('onchange');
$value = old($name, $value);
$editor = filter_var($editor, FILTER_VALIDATE_BOOLEAN);
if($name === '') {
$name = \Illuminate\Support\Str::random(8);
}
@endphp
@if($value !== '' || $editor === true)