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)
|
collect($documents)
|
||||||
->map(function (array $doc): void {
|
->map(function (array $doc): Section {
|
||||||
Section::make($doc['title'])
|
return Section::make($doc['title'])
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make($doc['text_name'])
|
TextInput::make($doc['text_name'])
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
|
|||||||
@ -168,10 +168,9 @@ public static function form(Schema $schema): Schema
|
|||||||
|
|
||||||
Group::make()
|
Group::make()
|
||||||
->schema(
|
->schema(
|
||||||
|
|
||||||
collect($documents)
|
collect($documents)
|
||||||
->map(function (array $doc): void {
|
->map(function (array $doc): Section {
|
||||||
Section::make($doc['title'])
|
return Section::make($doc['title'])
|
||||||
->schema([
|
->schema([
|
||||||
TextInput::make($doc['text_name'])
|
TextInput::make($doc['text_name'])
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user