Answer the question
In order to leave comments, you need to log in
Error when adding image by public_path?
Hello!
When adding an image, specify the path
$image_path = public_path('images/'.$site_id.'/'.$new_name);
$ImageUpload->save($image_path);
$image_path = public_path('images/'.$site_id.'/section/original/'.$new_name);
$ImageUpload->save($image_path);
Answer the question
In order to leave comments, you need to log in
Check the logs. Most likely a problem with the rights of the Storage folder
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question