Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tomasnorre's avatar

Laravel Filament: Relation Column

I have a problem with my Laravel filaments Relation in the "backend" interface. The column with my Relation isn't shown.

I have a simple model with a GolfCourse and Country. The edit is working and updating the Database as expected, but I cannot get it to list it on index page of the Filament backend.

I have following in my GolfCourseResources.php


 public static function table(Table $table)
    {
        return $table
            ->columns([
                Columns\Text::make('name'),
                Columns\Column::make('country.name'),
            ])
            ->filters([]);
    }

According to documentation, this should be how it done. https://filamentadmin.com/docs/tables/#columns

And get the error:

InvalidArgumentException
View [cells.column] not found. (View: .../vendor/filament/filament/packages/tables/resources/views/components/table.blade.php)
http://127.0.0.1:8000/admin/resources/golf-courses

cells.column was not found.

Are you sure the view exists and is a .blade.php file?

Do you have any hints on this?

0 likes
1 reply
tomasnorre's avatar
tomasnorre
OP
Best Answer
Level 51

I found the problem.

public static function table(Table $table)
{
    return $table
        ->columns([
            Columns\Text::make('name'),
            Columns\Text::make('country.name'),
        ])
        ->filters([]);
}

The Columns\Column was the wrong type, with Columns\Text it works like expected.

1 like

Please or to participate in this conversation.