diff --git a/src/Filepond.php b/src/Filepond.php index ffafbad..df5bec7 100644 --- a/src/Filepond.php +++ b/src/Filepond.php @@ -353,7 +353,7 @@ private function getLabels(): Collection return collect(config('nova-filepond.labels', [])) ->merge($this->meta[ 'labels' ] ?? []) ->mapWithKeys(fn (string $label, string $key) => [ - sprintf('label%s', Str::title($key)) => Nova::__($label), + Str::of($key)->prepend('label_')->camel()->value() => Nova::__($label), ]); }