jelmerkeij
FileUpload: Uploading (large files) directly to S3
No luck with this. The only thing I can find is to do what I already did: publish the livewire config and set the disk for
temporary_file_upload
, but this sets it for all uploads. I doubt that it's even possible to have this set per FileUploadComponent
.8 replies
FileUpload: Uploading (large files) directly to S3
Any suggestions on if this is good practice or are there better alternatives to adjust the "temporary_file_upload disk" specifically for a single FileUpload component? Or might this not be the right place to ask this question?
8 replies
FileUpload: Uploading (large files) directly to S3
I got this working by publishing the livewire config:
php artisan vendor:publish --tag=livewire:config
Than in the published config/livewire.php
under the array key temporary_file_upload=>disk
I set it to the s3 disk. Now the temp files are directly uploaded to S3.
Is this good practice or are there better alternatives to adjust the "temporary_file_upload disk" specifically for a single FileUpload
component?8 replies
filament Table main content goes under the footer.
I was trying to work out the exact same thing. You need to put the content in the view in a
<tr>
for it to make it work. (Source: https://v2.filamentphp.com/tricks/custom-table-footer-displays-above-content - it's a v2 URL but still relevant)4 replies
Custom Field does not submit data
Thanks again for your help @Lara Zeus . It seems that the
setup()
function in the ProductPrices
does the trick. I think it needs to be setup as an array. And it works when setting it up in the same way that CheckboxList()
does. Final working code of the custom field:
11 replies
Custom Field does not submit data
Thank you for taking the time to reply.
pricesTest
isn't a real property on my Product
model but for the sake of trying to work it out this doesn't make any difference when added:
I would expect the dd()
data in mutateFormDataBeforeSave()
to show the data from the form and not necessarily the model attributes. But it still comes up as null
in mutateFormDataBeforeSave()
.11 replies
Passing data between Wizard steps
Hi @JimKarvo I have tackled a similar problem like this today. In my case I'm using a wizard and in the first step you select a contact person. Depending on the client to which the contact person belongs you get a discount percentage when creating a quote. The quote lines are in a repeater and I need to prefill the discount percentage every time a quote line is added. I've introduced "global" variables within the main component to keep it from re-querying the database everytime. Not sure if this is a good practice but maybe this will point you in the right direction: https://gist.github.com/Jelmerkeij/1880137623bbfdcf5d605aa1b9244e67 (I put the code in my
QuoteResource.php
)4 replies
How to add extraAttributes (class) to Section container?
Thanks, that's an interesting approach. But I think this will not get me to the level of just the div
<div style="--col-span-default: 1 / -1;" class="col-[--col-span-default]">
. It has no hook classes. I need a way to get to the parent (container?) of the section. I think...4 replies
Livewire component has 'undefined variable' after updating Livewire?
I've created a Github issue for this: https://github.com/filamentphp/filament/issues/7509
6 replies
Set column action on condition
Thanks this works, although on the rows that do not have an action they still visually appear as a link (orange and lighter orange on hover). I think this is because all these classes appear on
filament-tables-text-column
:
filament-tables-text-column px-4 py-3 text-primary-600 transition hover:text-primary-500 hover:underline focus:text-primary-500 focus:underline
Is there any way to remove those when the row does not have the action attached?18 replies