I've used storage to store image files using laravel intervention library. I can not access the image in the storage.
Error
Intervention\Image\Exception\NotReadableException
Image source not readable
Controller
$imagePath1 = request('image1')->store('productsImg', 'public');
$thumbPath1 = request('image1')->store('productsImg/thumbnail', 'public');
$image1 = Image::make(("storage/{$thumbPath1}"))->fit(600, 600);
In the local project using xamp, I can solve this err using php artisan storage:link. However I don't have terminal access for the server. So I cannot run the command. How can I provide storage permission without using terminal?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire