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
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.
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.
Use liverwire data tables instead. Please avoid the overhead of jquery in an app that has alpine already
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
As per:
https://livewire-powergrid.com/table-component/data-source.html
You can use 'Collection' which can be done from an API. see:
https://demo.livewire-powergrid.com/examples/datasource-collection#
Livewire PowerGrid - Version 5
Livewire PowerGrid is a component for generating dynamic tables with your Laravel Models and Collections.
I see, this helps. I'll keep this in mind next time
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
It will get easier with v4. You won't need Sushi anymore
do you happen to know if there would be a backend adapter for filament's table? Something similar to yajra's datatable
WDYM by Backend Adapter? Isn't whole Filament "Backend"? 😅
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
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.
ahhh I see, that's pretty interesting. tysm!
You're welcome.
Thank you