Using Laravel-data casting
We are using spatie/laravel-data (https://spatie.be/docs/laravel-data) and if used as a eloquent cast on a model, the behavior that is normal in a array eloquent cast, is not available.
For example: TextColumn::make('data.name') would not work if "data" column was casted as a data object extending Spatie\LaravelData\Data.
Anyone solved this and what would be the best way to approach this?
Introduction | laravel-data
laravel-data
0 Replies