johny7
Filament exports under fly.io
Hello everyone.
Many thanks, @nanopanda , for the hint. With
FILAMENT_FILESYSTEM_DISK
the obligatory ->disk()
is omitted.
In addition, the CORS configuration was still missing from my Tigris bucket. I have now added this. The upload and deletion now work, but not the display of the preview in edit mode. I solved the display via a controller due to authorization issues. But in edit mode I get a CORS error for the retrieved image.
My browser sends the following request:
The answer is:
I have already configured my bucket for test purposes so that *
is set for all origins, methods and headers, and the max age is set to 86400
.
Anyone have any idea what I'm doing wrong? Do I need to configure anything else in my app?
Thanks in advance!12 replies
Filament exports under fly.io
@toeknee: I use the filament form in a resource.
I had previously set
FILESYSTEM_DISK
in both the .env and fly.toml. But even locally in my dev environment the error occurs when I configure my form component as follows:
I always have to set the following for it to work:
And then it only works as long as FILESYSTEM_DISK=local
is set. As soon as I set this to s3
, it doesnt matter what I write in
->disk().
But I haven
t actually worked with FILAMENT_FILESYSTEM_DISK
yet, I`ll test it out.12 replies
Filament exports under fly.io
Now I'm still having difficulties: If I simply create a file via
Storage::put()
, everything works perfectly. But with FilamentForm and FileUpload it won't work, the upload gets stuck.
I have now started to test different scenarios with FILESYSTEM_DISK=local
and =s3
. Even with local
it does not work, I always have to pass ->disk()
to the FormComponent. If I try this for s3, it hangs completely, even when uploading the file, even before submitting the form. No entries are generated in the log.
I already thought there were difficulties in writing the upload stream directly to tigris. So I set ->disk('local')
, but if FILESYSTEM_DISK=s3
is set, Filament does not even try to upload locally (storage/app/livewire-tmp
remains empty).
What am I doing wrong? Does anyone have an idea? @toeknee, would you be so kind?
Thanks in advance!
JN12 replies
Filament exports under fly.io
Thank you very much, that was a crucial hint! I have now read up on it and experimented with it a little. That's exactly what I need! I now have a clean way of accessing persistent data from different machines.
I still don't want to run a separate job for mini-exports, but via “sync”. Can anyone tell me why I get this error message when I run it on fly.io? Do I have to configure something in relation to CORS, and if so, where?
Many thanks and best regards
Johannes Nazarov
12 replies
Filament favicon is not embedded via https
No one there who can help me? If I have found out correctly, the layout for this is under
vendor\filament\filament\resources\views\components\layout\base.blade.php
. The first lines (up to the integration of the favicon) look like this:
Does anyone know how I can find out which controller is used to call up this layout?8 replies
GMail Mailer for laravel/filament
Found it now by myself via https://medium.com/@laraveltuts/how-to-send-mail-using-gmail-in-laravel-9-76d110779a4a
You have to create an App Password via https://myaccount.google.com/apppasswords and can use it in
.env
like:
4 replies
Select Disable when published
Your condition says, the Select
brand_id
should be disabled, when it's own value is brand_id
. I think, when you select an option from the relationship brands
, you will get an integer ID of the brand, but never the value brand_id
. So your condition will never match.
Maybe
is, what you are seeking for, because the value will be null
, when brand_id
is not set.25 replies
Use filament custom theme without npm/node
Hm. When I run
npm run build
I became a broken template. Running npm run dev
the vite server is runs and I get a working template. Shuting down the vite server, the template brokes.
Using ->viteTheme('resources/css/filament/app/theme.css')
in the PanelServiceProvider my template references assets at the vite server:
So how can I use my template without an active vite-server?
The generated assets at public\build... aren't used anywhere. What I'm doing wrong?14 replies