Fetch and upload an image in the background using Filament and Alpine.js.
You can set the file based on a value of another field, not just text in Filament forms. Here is how I did it:
www.youtube.com/watch?v=sIsxq7j_4vY
![neverything](https://pinkary.com/storage/avatars/c2b3714fa556775157f462fc629a34f2f06082f3f1df0def8c014a4f2b699177.png)
![neverything](https://pinkary.com/storage/avatars/c2b3714fa556775157f462fc629a34f2f06082f3f1df0def8c014a4f2b699177.png)
Silvan Hagen
@neverything
Friendly internet human. Developer & consultant, mostly WordPress & Laravel. Collecting real world Livewire projects @ WireInTheWild.com
• • 11 Posts • 61 Views
It's the default theme, with the primary color Rose and OpenSans as the font.
Building apps with Filament is just magical. Nothing beats the developer experience and speed of development.
Have a look at a the SaaS app I'm working on:
Add media from an url using the Spatie Media Library package.
When importing data, I get a lot of image urls and need to download and attach the media items to another model. I'm doing this in an action class called from a job:
Filament Tip: Save Some Queries 🚀
The tenant switcher builds the entire navigation for each tenant just to get the first URL. This can lead to unnecessary queries, especially with complex menus and count badges.
Here's a way to build the full menu only for the current tenant: