avatar from s3
How to get this avatar from s3?
This code is from the documentation.https://filamentphp.com/docs/3.x/panels/users#setting-up-user-avatars
6 Replies
Store s3 avatar link in
avatar_url
column of your users
table in DByes i am storing but i want to get with location like https://ddkjk.vi/s3/sdakjsadkj.png like that so this is in my db sdakjsadkj.png and i want full link https://ddkjk.vi/s3/sdakjsadkj.png like that ???
So you want a custom temporary s3 url driver basically with routing
i want to show avatar form s3 but i am using this https://filamentphp.com/docs/3.x/panels/users#setting-up-user-avatars it is giving location but not aws url
This isn't making much sense, you should be storing the image in s3 and storing the full s3 path if the url is public
If the image isn't public then you can write a getter to get it from the path
i.e.
Storage::disk('s3')->temporaryUrl($path);
ok will try this thanks
its working thanks .