Enable Minio S3 in Laravel Sail environment
Hi
I'm making a CRUD resource for users, and it should be possible to add an avatar. However, I'm using a Laravel Sail environment with a minio container, acting as a s3 actor.
I'm struggling to make Livewire FileUpload component working with this setup π
I got this article recommended https://talltips.novate.co.uk/livewire/livewire-file-uploads-using-s3 but it seems cors is enabled by default in minio according to https://min.io/docs/minio/linux/operations/checklists/thresholds.html#id3 this
Any idea how to configure it? π€
2 Replies
create the βlocalβ bucket
.env
Yes, but you keep the issue there. It needs to have a
http://localhost:9000
for AWS_ENDPOINT as the browser is on the host network π