How I create images urls with "filament spatie media library" ?
How I create images urls with "filament spatie media library" ? if yes How do I do that, i am working with filament-api-service so I can make those image urls available for my frontend.
9 Replies
thanks @awcodes however I switched to curator, but I don't see the media resource and also I noticed that the migration has changed to a curator, What got me interested was the factthat curator automatically generates urls/file_path upon image upload. Is there a way I can mimic that behaviour?
so you know, Curator doesn't work with Spatie Media
yes, I took note of that
as long as you added the CuratorPlugin::make() to your plugins array in your panel service provider the resource should be showing.
see here to start with to see how Curator overrides the default upload functionality for the fileupload field. https://github.com/awcodes/filament-curator/blob/3.x/src/Components/Forms/Uploader.php
GitHub
filament-curator/src/Components/Forms/Uploader.php at 3.x · awcodes...
A media picker plugin for Filament Panels. Contribute to awcodes/filament-curator development by creating an account on GitHub.
yeah I did However I get this error
the is also giving same error:
It most certainly exists. lol
https://github.com/awcodes/filament-curator/blob/ec87fd4b9361a486919245a3ead1c1a8bdbb33e5/src/CuratorPlugin.php#L127
I think it might be from my panel then, something might have been broken