© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Azura

Section - must be of type string, array given

EDIT: i even copied code from the demo. Same error. Seems like a bug

Hi, after todays update to 3.1, i noticed that my pages stopped working.

These pages were working fine in 3.0.x

After deleting few stuff i found out that
Forms\Components\Section::make()
Forms\Components\Section::make()
is causing the error.

I couldn't find anything new/different in the documentation.

Is this a bug because when i delete Section component, everything works.

View attachment for error.


Code:
Group::make()
->schema([
  Section::make()
     ->schema([
       TextInput::make('name')
           ->label('Team name')
            ->required()
            ->maxLength(255),                             
  ])
  ->columns(2),
])
->columnSpan(['lg' => 2]),
Group::make()
->schema([
  Section::make()
     ->schema([
       TextInput::make('name')
           ->label('Team name')
            ->required()
            ->maxLength(255),                             
  ])
  ->columns(2),
])
->columnSpan(['lg' => 2]),
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Argument #2 ($label) must be of type string, array given
FilamentFFilament / ❓┊help
3y ago
Argument #1 ($values) must be of type array, string given
FilamentFFilament / ❓┊help
3y ago
getUrl Argument #1 $parameters must be of type array, string given.
FilamentFFilament / ❓┊help
2y ago
foreach() argument must be of type array|object, null given
FilamentFFilament / ❓┊help
2y ago