I save product image on my local with below code and all works fine.
$image = $request->file('product_image'); $filename = time() . '.'. $image->getClientOriginalExtension(); $location = public_path('images/'.$filename); Image::make($image)->save($location); $product->freature_image = $filename;
But when i live the app to Cpanel it gives me error. I know there must be a path error as all public folder items are in Public_html and all other are in Laravel folder which is also in root but can't understand how to fix it.
Can't write image data to path (/home/motifsol/Laravel/public/images/1587584786.png)