Table-Widget-Problem (call to a member function table() on string)
Hi - I'm having trouble setting up a table-widget. I've created the widget via
php artisan make:filament-widget ArticleStocksWidget --table
, linked it to the ArticleResource and marked "The [console] panel".
I've registered the widget within the resource and added it to the getHeaderWidgets
in my "ViewArticle"-Page.
When I try to display said widget, I get a blank space where it should be and then the display-error "call to a member function table() on string" pointing to my ->columns-method. My table-function looks like this:
FrontendCacheReservedStocks is a regular Model.
Anyone have a clue on where to look here?Solution:Jump to solution
You should pass columns to the array
```php
->columns([
TextColumn::make('fulfiller_id')
......
3 Replies
Solution
You should pass columns to the array
π€¦ββοΈ - of course! Own stupidity! π
Thank you!
no problem, it happens βοΈ