How to get image from changed disk
mehdiyaq opened this issue · 0 comments
mehdiyaq commented
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?