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
I'm pretty sure you can't, although maybe someone will correct me.
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.