Fixed varname issue on old image delete for manufacturers

This commit is contained in:
snipe 2017-11-01 13:10:56 -07:00
parent feb2f5b076
commit 4cdcbc97ee

View file

@ -142,7 +142,7 @@ class ManufacturersController extends Controller
$image = $request->file('image');
$file_name = str_slug($image->getClientOriginalName()).".".$image->getClientOriginalExtension();
$path = public_path('uploads/manufacturers/'.$file_name);
$old_image = $path.$model->image;
$old_image = $path.$manufacturer->image;
try {
unlink($old_image);