From 599035b3f81da01f2642130f55cc8db19ca8dd6e Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Mon, 19 Feb 2024 11:06:42 +0000 Subject: [PATCH] Fix empty title when creating --- app/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Item.php b/app/Item.php index 7f2f0e9b..b0e83b4f 100644 --- a/app/Item.php +++ b/app/Item.php @@ -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), ); }