F
Filament2mo ago
Shaza

choose filament

Hello everyone, if I am using filament and the project I am working on uses microservice, is my choice correct? If I want to create a postman collection for the default method in the resource, can I?
15 Replies
Dennis Koch
Dennis Koch2mo ago
If I want to create a postman collection for the default method in the resource, can I?
Filament works with Livewire and doesn't offer an API out of the box. Generally I don't think Laravel/Livewire/Filament is usually used for microservices.
-Ni3K-
-Ni3K-2mo ago
I am using Filament (STRICTLY for the Frontend) with my microservices right now in one of my projects. I can tell you that it is definitely a lot less work than if you were to start from scratch. You would realistically only need to find a substitute for the table. For creating and updating, you can always use Filament Action/Page with Livewire to create forms and handle the submission. As for the table, I use jquery datatable.
toeknee
toeknee2mo ago
Use liverwire data tables instead. Please avoid the overhead of jquery in an app that has alpine already
-Ni3K-
-Ni3K-2mo ago
from what I understand, there currently isnt any datatable apart from jquery's that can do what I need. rappasoft/laravel-livewire-tables and livewire Powergrid is quite similar to something like filament's table where it needs Eloquent to function. My app's architecture is structured in a way that the only source of data are API calls. Something like Yajra's backend adapter for the jquery datatable works great for my particular use case
toeknee
toeknee2mo ago
Livewire PowerGrid - Version 5
Livewire PowerGrid is a component for generating dynamic tables with your Laravel Models and Collections.
-Ni3K-
-Ni3K-2mo ago
I see, this helps. I'll keep this in mind next time
Shaza
ShazaOP2mo ago
Please, can you tell me about your filament experience with the external API and how to display data in the table with the presence of relationships I am currently using the Sushi but I want to do Customize's more things Thank you
Dennis Koch
Dennis Koch2mo ago
It will get easier with v4. You won't need Sushi anymore
-Ni3K-
-Ni3K-2mo ago
do you happen to know if there would be a backend adapter for filament's table? Something similar to yajra's datatable
Dennis Koch
Dennis Koch2mo ago
WDYM by Backend Adapter? Isn't whole Filament "Backend"? 😅
-Ni3K-
-Ni3K-2mo ago
with filament, there are somethings that cant really be done at scale via API, like tables. I used jquery's table because it is much more convenient than having to sync up 2 data sources, sushi's sqlite and actual backend table. so we chose another table instead. It is a much easier approach to the whole ordeal than having to deal with possible mismatched states between the 2 datasources ahhh I see. I remembered see Dan saying somewhere that with the introduction of v4, the filament tables would be able to work with API data sources. I was wondering if there would be the package to be that API server if I'm making sense
Dennis Koch
Dennis Koch2mo ago
As far as I remember the concept will be that you have a callback in the backend that gets the table "state" (filters, search, sort) and based on that you can provide any Collection of data you want.
-Ni3K-
-Ni3K-2mo ago
ahhh I see, that's pretty interesting. tysm!
Dennis Koch
Dennis Koch2mo ago
You're welcome.
Shaza
ShazaOP2mo ago
Thank you

Did you find this page helpful?