From fefa67cb111a3dec13bfb87a656d3aaad0c78668 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Mon, 12 Jan 2026 15:23:27 +0700 Subject: [PATCH] fix(company and media): change return type in attachment --- app/Filament/Pages/Company.php | 4 ++-- app/Filament/Pages/Media.php | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Filament/Pages/Company.php b/app/Filament/Pages/Company.php index 2de3275..1ba9a75 100644 --- a/app/Filament/Pages/Company.php +++ b/app/Filament/Pages/Company.php @@ -224,8 +224,8 @@ public static function form(Schema $schema): Schema ], collect($documents) - ->map(function (array $doc): void { - Section::make($doc['title']) + ->map(function (array $doc): Section { + return Section::make($doc['title']) ->schema([ TextInput::make($doc['text_name']) ->hiddenLabel() diff --git a/app/Filament/Pages/Media.php b/app/Filament/Pages/Media.php index f5e4455..7407b5d 100644 --- a/app/Filament/Pages/Media.php +++ b/app/Filament/Pages/Media.php @@ -168,10 +168,9 @@ public static function form(Schema $schema): Schema Group::make() ->schema( - collect($documents) - ->map(function (array $doc): void { - Section::make($doc['title']) + ->map(function (array $doc): Section { + return Section::make($doc['title']) ->schema([ TextInput::make($doc['text_name']) ->hiddenLabel()