© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
15 replies
WEBMAS

Multilingual field data is not saved

Hello.

I installed and configured this plugin: https://filamentphp.com/plugins/filament-spatie-translatable

Set up the model:
class Category extends Model
{
    use HasFactory, HasTranslations;

    public $translatable = ['name'];
class Category extends Model
{
    use HasFactory, HasTranslations;

    public $translatable = ['name'];


Configured Resource:
     public static function form(Form $form): Form
     {
         return $form
             ->schema([
                 TextInput::make('name.en')
                     ->required(),
                 TextInput::make('name.es')
                     ->required()
...
    public static function table(Table $table): Table
    {
        return $table
            ->columns([
                TextColumn::make('name.en')
                    ->searchable()
                    ->sortable(),
                TextColumn::make('name.es')
                    ->searchable()
                    ->sortable(),
     public static function form(Form $form): Form
     {
         return $form
             ->schema([
                 TextInput::make('name.en')
                     ->required(),
                 TextInput::make('name.es')
                     ->required()
...
    public static function table(Table $table): Table
    {
        return $table
            ->columns([
                TextColumn::make('name.en')
                    ->searchable()
                    ->sortable(),
                TextColumn::make('name.es')
                    ->searchable()
                    ->sortable(),


When I create a new category I get the error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name.en' in 'where clause'
SELECT count(*) AS aggregate FROM categories WHERE name.en = ....

How to fix it?
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

Saved data not showing in multiselect field
FilamentFFilament / ❓┊help
16mo ago
How to Trim TextInput field before data is saved?
FilamentFFilament / ❓┊help
3y ago
Nested Relationships data not beeing saved
FilamentFFilament / ❓┊help
2y ago