Atena.D
Can't change $modelLabel in ManageRelatedRecords
I've created a relation page using ManageRelatedRecords but when I try to change the model label as I do in resources or normal relation managers it doesn't work. It seems there isn't such a property in ManageRelatedRecords to override and change the model label.
How can I do it now?
Here are the properties I've overridden:
12 replies
How to prepend next item instead of appending it in a Filament Repeater
If I add a new item in a repeater, it will be added at the end of all other items I want the new items appear at the top of the previous items.
Is there any method or way?
4 replies
Error during upload with Filament fileupload
I see this error every time I want to upload a large file like more than 1 MB though the maximum file size in
livewire.php
is 12 MB and max upload time is 5 min.
I also tried ->maxSize(1024 * 10)
on FileUpload class but the same error keeps popping up after uploading a file more than 1 MB.
Here is my code:
What should I do?4 replies
Two level relation in select
How can I show the title of two level relation in a Select element e.g. the structure is like this:
accounting->creditCard->bank->bank_name
Now I am in accounting resource and only have access to
bank_id
in credit_cards
table with creditCard
relationship but I want to have access to the next relationship to get access to bank_name
value2 replies
Remove uploaded files in Filament admin panel
Users can upload some images in my app but sometimes admin wants to remove the files from the application folder, how is that possible? I mean is that possible when admin clicks on the x button in filepond? but in that case the image isn't removed from the public folder in the storage.
3 replies
Send database notification for any change in a table.
Hi. I wanted to know how can I send database notification to admin panel whenever one of my table changes e.g. one record deleted, added or created. I read https://filamentphp.com/docs/2.x/notifications/database-notifications but I was just able to add the notification bell to admin panel and I couldn't listen to database changes
18 replies