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

Show images from storage folder #3

Closed
giochem opened this issue Mar 28, 2024 · 3 comments
Closed

Show images from storage folder #3

giochem opened this issue Mar 28, 2024 · 3 comments

Comments

@giochem
Copy link

giochem commented Mar 28, 2024

When run serve, website don't load any image from storage
I fix by run this command

php artisan storage:link
@giochem
Copy link
Author

giochem commented Mar 28, 2024

edit .env file if when edit image don't load

FILESYSTEM_DISK=public

@Hireme564
Copy link

Hireme564 commented Jul 9, 2024

Hello @giochem

Can you tell me how to login as a general user instead of admin. Because whenever I try to register It logged me as an admin

@snykk
Copy link
Owner

snykk commented Jul 21, 2024

Hello @giochem,

Thank you for identifying this issue and providing a solution.

You are correct, I missed the configuration for the storage. To ensure the website loads images correctly from storage, we can run the following command:

php artisan storage:link

Additionally, make sure the .env file is configured with the correct filesystem disk setting:

FILESYSTEM_DISK=public

I appreciate your understanding and thank you for your contribution.

Best regards,
[snykk]

@snykk snykk closed this as completed Jul 21, 2024
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

3 participants