Multiple databases integration.
Hello everyone, I am making an admin panel for many suppliers and each supplier has its own shcema and the same structure. I am using laravel filament to make a management system for all suppliers in the same admin panel. For example, for the list of table users, I will get users from supplier_1 and supplier_2 to display table users. I don't know if anyone has done this method yet. there are no instructions for the method I just mentioned above. Thanks you very much!
5 Replies
This is the model:
This is the table:
......
Honestly, I’ve never seen anyone trying to aggregate data this way. And I’m not even sure it’s possible in the context of filament since the tables depend on an eloquent integration for the table data. (At least for now)
You might be able to aggregate them into a Sushi instance for the table data though. It does work with tables.
https://usesushi.dev
Sushi 🍣
Eloquent’s missing “array” driver.
Sometimes you just want to use Eloquent without a database.
i thought this was too complicated to do so I have tried to implement each vendor as a single resource. Work like a charm. Thanks.