© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago
Iztok

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
Introduction | laravel-data
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Using Spatie/Laravel-Data to validate Filament Forms
FilamentFFilament / ❓┊help
15mo ago
Value object casting
FilamentFFilament / ❓┊help
2y ago
Does Filament play well with laravel-data?
FilamentFFilament / ❓┊help
2y ago
using laravel controller with parameters not working.
FilamentFFilament / ❓┊help
2y ago