© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
11 replies
Sivan-Dev

Builder\Block MaxItems show error

Hi Everyone,

I want to limiting the number of times a block but it shows error. I am using the pages. Here is code snippet and error message

Builder::make("content[" . $locale . "]")
->label("Content")
->blockPickerColumns(['sm' => 1, 'md' => 2, 'xl' => 2])
->blockNumbers(false)
->blocks([
Builder\Block::make("location[" . $locale . "]")
->label("Location")
->icon("heroicon-s-map-pin")
->MaxItems(2)
->schema([
...Location::make($locale),
])
]),

Error
array_filter(): Argument #1 ($array) must be of type array, null given

How can i Fix this
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

Big Builder Block - Page Builder
FilamentFFilament / ❓┊help
6mo ago
Builder blocks labels without count if maxItems = 1
FilamentFFilament / ❓┊help
2y ago
Builder inside Custom Block Modal
FilamentFFilament / ❓┊help
7mo ago
Form builder custom block picker
FilamentFFilament / ❓┊help
9mo ago