Fix empty title when creating

This commit is contained in:
Chris Hunt
2024-02-19 11:06:42 +00:00
parent f3bc6ab618
commit 599035b3f8

View File

@@ -141,7 +141,7 @@ class Item extends Model
protected function title(): Attribute
{
return Attribute::make(
get: fn (string $value) => ($value === 'app.dashboard' ? __('app.dashboard') : $value),
get: fn (mixed $value) => ($value === 'app.dashboard' ? __('app.dashboard') : $value),
);
}