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?