fix(company and media): change return type in attachment
This commit is contained in:
parent
6fe5e81717
commit
fefa67cb11
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user