buhbailey
Button
how did you solve this issue? Having the same problem. All filament colors, buttons, are lost when using a custom theme. all other css works, however, like the forms.css. the custom theme.css appears in the page headers with the forms.css and some other css, however, the app.css from filament does not. It looks like the same issue you were having. The buttons, although invisible are there and they work. the layout is fine, etc. just the colors and buttons, it appears.
19 replies
Conditional 3rd Step in Wizard (Button Doesn't Change from Create to Next, or vice versa).
any ideas other than possibly having to extend form and dynamically change the button text of the wizard or use custom JavaScript/Alpine.js? I would think there would be a filament way to add a step, so I prefer to not recreate the wheel, if possible.
4 replies
Conditional 3rd Step in Wizard (Button Doesn't Change from Create to Next, or vice versa).
I've added the applicable shortened version of the code, . again this works (showing and hiding step 3), however, the 'Create' Button in Step two remains, even after adding the third step. Also, after toggling 'toggle' on for Step 3 to be visible, we cannot move to step three unless backing out to step 1 then back through to step 3.
4 replies
Mismatch with expected Builder instance and documentation
Also, not sure if this is the best way to handle your issue with absolute values, but I created local scopes for positive and negative. like then make simple reference in the summarizer.
8 replies
Mismatch with expected Builder instance and documentation
Jon, were you ever able to solve this? I am running into the same issue after reviewing the docs. It may be related to the
using
method. To shortcut my investigation, could you provide any solution that worked for you?8 replies
Save file contents of PDF to database longblob field
I was able to get this to work using the handleRecordCreation method by adding it to the CreateDocument.php file. Everything else pretty much stayed the same. Thanks again, Lara, for pushing me in the right direction!
15 replies
Save file contents of PDF to database longblob field
livewire-tmp exists and was full of temp files. I manually removed them. When attempting to save the files now, no new files are created in the livewire-tmp directory, however, they are getting created in the storage/app/public folder. I would prefer to handle the save at the time of upload instead of creating a separate process to lookup the file by URL then persist to the db. Does
state
not have access to the file contents? state
has access to just about everything else, but I don't see a method to grab the contents of the file. I would have thought this would be much easier than it has turned out to be. I do appreciate your efforts in helping.15 replies
Save file contents of PDF to database longblob field
same error, failed to open stream, no such file or directory. I'm not sure the file is saved into the temporary directory at the time the mutateFormDataBeforeCreate runs. But again, I haven't much experience with Filament, so not sure.
15 replies
Save file contents of PDF to database longblob field
file_get_contents leaves me with a similar error. (file_get_contents(/storage//opt/homebrew/var/www/app/storage/app/livewire-tmp/tL45nNQkqouNzeO0jKSpejOUZ4CpmS-metaNS5wZGY=-.pdf): Failed to open stream: No such file or directory). It is almost as if the file doesn't save to the temp folder until after uploading on the page then hitting submit. If that's the case, then I have no idea how to get the contents. In the old days of procedural programming and using globals, I'd just use fopen( $_Files['document']['tmp_name'] , 'rb')' then read the file "fread" and it would work. Gotta have access to the file and path, however, to make that work and I can't see how to get access to the contents of the file. I must be missing something.
15 replies
Save file contents of PDF to database longblob field
Thanks for the reply.
The value of fopen($file['path']) is :
fopen(/opt/homebrew/var/www/app/storage/app/livewire-tmp/NmX4w5tj4zv1B8CltveUIJkuBZHTgk-metaNS5wZGY=-.pdf): Failed to open stream: No such file or directory
let me try the file_get_contents suggestion.
15 replies
Save file contents of PDF to database longblob field
bumping this back up in the hopes of getting some insight. There may not be a Filament way to simply store the contents of a file in a database, although I would think this would be simple (but beyond my understanding!). I cannot figure out how to even access the contents of the temporary file and store it in a database. I guess it's probably best to run the code outside, but thought it could have been cleaner keeping it inside the resource as there have been numerous questions related to this, but not a single definitive answer that I can tell.
15 replies