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 to get image from changed disk #60

Open
yacobii opened this issue Jun 5, 2021 · 0 comments
Open

How to get image from changed disk #60

yacobii opened this issue Jun 5, 2021 · 0 comments

Comments

@yacobii
Copy link

yacobii commented Jun 5, 2021

I have changed the image disk as and works fine:

'storage_disk' => env('LARAVEL_TRIX_STORAGE_DISK', 'trix'),
'trix' => [
'driver' => 'local',
'root' => public_path('trix'),
],

But, in retrieving the data :

{!! $post->trixRichText->first()->content !!}

it shows just the name of the image as a link, by click on it, goes to something like:
http://127.0.0.1:8000/storage/P4DpCCyw0xYdunncYy2Xo1HZdSf1zAPeqBrQUu4i.jpg

and don't show the image while the stored image is in the trix folder of the public folder.

the correct path must be:
http://127.0.0.1:8000/trix/P4DpCCyw0xYdunncYy2Xo1HZdSf1zAPeqBrQUu4i.jpg
How to fix this?

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

1 participant