FilamentF
Filamentβ€’17mo ago
Vladimir

Table Colum Json - Array to string conversion error

in user table there is a settings column that is json.
Tables\Columns\TextColumn::make('settings')
throws Array to string conversion.

Tables\Columns\TextColumn::make('settings')->formatStateUsing(function (array $state) ....

formatStateUsing
  • throws array to string conversion error
ried to cast in user model as
protected $cast = [ 'settings' => array ]
Also throws array to string conversion error

Could not find anything in table builder docs. Not a single mention.

I am pretty sure that there is some way to do it, and wondering how as it is not possible that is not possible πŸ˜„

Anyone can help?
Was this page helpful?