laravel-trix icon indicating copy to clipboard operation
laravel-trix copied to clipboard

How to get image from changed disk

Open mehdiyaq opened this issue 3 years ago • 0 comments

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?

mehdiyaq avatar Jun 05 '21 10:06 mehdiyaq