Amitoj
url() is disrupting table columns
Hi folks, I am using table columns with combination of Split & Stack.
Everything from layout perspective looks fine until I place
url()
in any of the columns.
I have attached 3 scenarios to demonstrate the issue
1. In 1st picture I am not using url()
anywhere and the layout looks what I expect it to be.
2. In 2nd picture, I wanted to insert url()
on username, but it disrupt the columns before it.
3. In 3rd picture, I moved the url()
function to the image for testing, and it still disrupted the columns before it.
I am pretty sure I must missing some parameters in my table builder that is leading to this unexpected behaviour, although I tried all the combinations of breakpoints and canGrow() functionalities, but I didnt seem to fix it.
Can someone please tell me if it is filament bug or I am missing something? Thanks!3 replies
HasOne relationship not updating foreignKey in parent model
Hi there, I have two models,
Project
& ProjectAttachment
. The relation in Project
model is:
and in ProjectResource
class, I am using
Although I was very confident it will work, this is only adding rows in ProjectAttachment
table and not updating the attachment_id
in Project
table when submitting a create record request, resulting into empty columns in Attachment
section above. But if I add attachment_id
manually in database, it would fill up the columns in Attachment
.
Can someone please help with if I missed anything?9 replies
How to get search record after choosing SELECT option?
Hi there, I am using the following code to obtain
user_id
(which belongs to user
model). I am trying to forward the search record of selected user to another fields (i.e. phone_number
) without using manual search query. Is there anyway that filaments provide to do the work, I failed to find related content on the documentation, thank you.
4 replies