lukaveck1
Can't download PDF using Spatie Laravel-pdf
https://www.youtube.com/watch?v=QjoIpJj8qxU Reading the comments right now, sounds like this is a bit tricky after all.
2 replies
Storing multiple filenames at once when uploading multiple files
Well this was already implemented as said and worked good for other resource (but saving filenames there wasn't necessary) and then when I started to implement it for another resource the docs seemed pretty straight forward on how it should work if we have separate column for filenames, but then I just couldn't get it to work.
34 replies
Storing multiple filenames at once when uploading multiple files
I know that creating() method looks weird, but that's how it was done by someone else for some other resource where we are uploading assets, but I had to do it on some other resource now as well, but with filenames stored separately. I tried to tweak it for my cause, but to no success.
34 replies
Storing multiple filenames at once when uploading multiple files
I did it with a very ugly hack, but this seems like a bug on filament side of things. By default it doesn't work, so I resorted to observer creating() method, which I thought is gonna work fine, just pass in the filename, but I got a very weird bug basically. One of the files would incorrectly save filename always when uploading multiple files (it would save all the filenames of uploaded files, instead of just one).
Lastly I just said to update the name after record is created and this works as intended now.
34 replies