Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I remove the domain name from the path of image? #1107

Closed
DevYSM opened this issue Nov 29, 2021 · 8 comments
Closed

How can I remove the domain name from the path of image? #1107

DevYSM opened this issue Nov 29, 2021 · 8 comments

Comments

@DevYSM
Copy link

DevYSM commented Nov 29, 2021

Hello devs, Please how can I remove the domain name from the Image path for example:
http://127.0.0.1:8000/storage/photos/1/61a4d686d98b9.jpeg
I just need the :
/storage/photos/1/61a4d686d98b9.jpeg

the package handle this or I will do it manually.

@sorryjack
Copy link

same with me. keep using http://127.0.0.1:8000/ even I set relative_url to true. caused image nt found cz calling http://127.0.0.1:8000/ twice

@sorryjack
Copy link

find this and its solved
#1089

@DevYSM
Copy link
Author

DevYSM commented Dec 23, 2021

I find the same ticket issue but why remove the App Domain !!!

@ORN-Fox
Copy link

ORN-Fox commented Jan 14, 2022

Hi here is how to solve this problem because I had it before:

'public' => [
     'driver' => 'local',
     'root' => storage_path('app/public'),
- 'url' => env('APP_URL').'/storage',
+ 'url' => '/storage',
     'visibility' => 'public',
 ],

in the file config/filesystems.php

@nqlinh2205
Copy link

why images are stored in folder name "1" ?? who can explain to me? pls

@eugenefvdm
Copy link

User ID 1, or 2, or 3 etc.

@@streamtw
@tsawler
@youchenlee

Please close this?

@tsawler
Copy link
Contributor

tsawler commented Mar 27, 2024 via email

@streamtw
Copy link
Member

Solution can be found in #1233 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants