if (!empty($request->image)) {
$file =$request->file('image');
$extension = $file->getClientOriginalExtension();
$filename = time().'.' . $extension;
$file->move(public_path('uploads/'), $filename);
$data['image']= 'public/uploads/'.$filename;
}