F
Filament15mo ago
das27

How can I use DTO/DataCollection instead of an Eloquent model in Resources?

In our project, we use DDD. That's why we make queries through the Facade instead of making direct queries to the Eloquent model.
2 Replies
cheesegrits
cheesegrits15mo ago
I'm pretty sure you can't, although maybe someone will correct me.
Patrick Boivin
Patrick Boivin15mo ago
This is the most common solution for using custom collections with Filament Tables: https://filamentphp.com/community/how-to-consume-an-external-api-with-filament-tables
Filament
How to consume an external API with Filament Tables by Leandro Ferr...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
Want results from more Discord servers?
Add your server