Closed imrancoder closed 1 year ago
Please provide instructions on how to reproduce.
Please provide instructions on how to reproduce.
After this all images are deleted from folder
In config/media-library.php
can you try changing:
'path_generator' => MediaPathResolver::class,
to
'path_generator' => Spatie\MediaLibrary\Support\PathGenerator\DefaultPathGenerator::class,
and see if that fixes the problem?
In
config/media-library.php
can you try changing:'path_generator' => MediaPathResolver::class,
to
'path_generator' => Spatie\MediaLibrary\Support\PathGenerator\DefaultPathGenerator::class,
and see if that fixes the problem?
No its not working with Spatie\MediaLibrary\Support\PathGenerator\DefaultPathGenerator::class,
and after installing lunar with 'path_generator' => MediaPathResolver::class,
images are loading
but with 'path_generator' => Spatie\MediaLibrary\Support\PathGenerator\DefaultPathGenerator::class,
images are not loading as images are present in storage folder
The provided media resolver has been removed in favour of Spatie's own. If you change the path resolver then you would need to regenerate the images.
note
need to migrate/move the image files to Spatie's directory structure if changing from demo's MediaPathResolver
to Spatie's DefaultPathGenerator