© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
Muxabble

Error with Builder Field

Hello,

I did a fresh install of Laravel 10 with Filament 3, I created a resource page :
- Title - string
- Slug - string
- Content - JSON

I want to use the Builder component but I have 2 errors:

The first is :

Cannot use Filament\Forms\Components\Builder as Builder because the name is already in use
Cannot use Filament\Forms\Components\Builder as Builder because the name is already in use


So I changed the name to :

use Filament\Forms\Components\Builder as PageBuilder
use Filament\Forms\Components\Builder as PageBuilder


this solves the first error, but when I try to add a block and save the resource, I get a second error:

Array to string conversion

It does save the title and slug, but for the content it replaces them with ?

INSERT INTO
  `pages` (
    `title`,
    `slug`,
    `content`,
    `updated_at`,
    `created_at`
  )
VALUES
  (dsf, dfs, ?, 2024 -02 -13 12: 28: 32, 2024 -02 -13 12: 28: 32)
INSERT INTO
  `pages` (
    `title`,
    `slug`,
    `content`,
    `updated_at`,
    `created_at`
  )
VALUES
  (dsf, dfs, ?, 2024 -02 -13 12: 28: 32, 2024 -02 -13 12: 28: 32)


Have you come across this problem before?

Thanks !
Solution
Check the model is casting the attribute to an array.
Jump to solution
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

Reactive Builder field
FilamentFFilament / ❓┊help
3y ago
Help with builder field and multilanguage
FilamentFFilament / ❓┊help
2y ago
Multi field FieldComponent
FilamentFFilament / ❓┊help
2y ago
Possible bug with Builder field and FileUpload
FilamentFFilament / ❓┊help
3y ago