ingmontoya
Share records between panels
Hey y'all,
It's posible to have a two panels in a multitenancy environment, that can share records between each other? for example user1 in tenanA creates a record, then user2 in tenantB receives that record and it's able to view and edit it? I tried to do it but when user1 in tenanA creates a record, user2 in tenantB can see the record in the table but when tries to open it, it falls into a 404 - that's because user2 in tenantB is not the owner of the record. Any ideas?
5 replies
Allow editing a non owner record
Hello, I'm in the process of developing an order management system where a buyer places a purchase order with a seller in a different tenant. So far, everything is functioning smoothly (I'm using a single table). However, a challenge arises when the seller in another tenant attempts to access the record, resulting in a 404 error. I've identified that this issue stems from the fact that the seller is not the owner of the record, as I modify the team_id in the database, allowing me to view it without any problems. I'm unsure about how to configure the system to display the field and permit editing, even if the user is not the owner. Do you have any suggestions? I've read about record ownership in the documentation, but I'm uncertain about its practical implementation. It's worth noting that the table includes two foreign keys (team_id and provider_id, the latter being the team ID of the seller).
10 replies
Create tenant menu
I'm trying to limit the number of tenants that a user can create, I have this code inside TeamPolicy:
The problem is, when the user attempts to create a new tenant (http://localhost/admin/new), the following code is returning null...
Any ideas?
8 replies
Filament custom Registration Form
Hey Y'all,
I did a custom register component to add a plan selection, made the relationship between users and plans and this is how it looks my register class:
however, I'm getting an error Call to a member function isRelation() on null
https://flareapp.io/share/x7XZpMAm
6 replies
custom summarizer
I've been trying to make a custom Summarizer with the
using
method but it doesn't receive a $record as a parameter and don't know how to pass the fk value, this is the code:
I only need to pass the value but don''t know how. Any ideas?3 replies
show/hide field depending on data load?
I'm trying to show a Repeater based on a Radio field, it's working fine but the problem is not working on first load, see video attached.
I'm using live(), also tried with reactive() none of those works to get the data onload
8 replies
Checklist values
Hi, I'm trying to show fields based on checklist selection, but I'm not sure how to retrieve those selected values. When using Radio it's much easier because I use:
->visible(fn (Get $get): bool => $get('question1') === 'yes')
but how to do the same using CheckList ? I know checklist returns an array but not sure how to it5 replies