public function storeimage(Request $request)
 {
     $galeriaid = $request->input('id_galeria');
     $path = public_path() . $request->input('path');
     $files = $request->file('file');
     foreach ($files as $file) {
         $fileName = strtolower(str_random(40) . '.' . $file->getClientOriginalExtension());
         $file->move($path, $fileName);
         $galimg = new Galeria_Imagen();
         $galimg->id_galeria = $galeriaid;
         $galimg->nombre = $fileName;
         $galimg->save();
     }
     return redirect()->route('creategaleria', [$galeriaid]);
 }
 public function storeimage(Request $request)
 {
     $restaurant = Tour::find($request->input('id'));
     $galeriaid = $restaurant->id_galeria;
     $path = public_path() . $request->input('path');
     $files = $request->file('file');
     foreach ($files as $file) {
         $fileName = strtolower(str_random(40) . '.' . $file->getClientOriginalExtension());
         $file->move($path, $fileName);
         $galimg = new Galeria_Imagen();
         $galimg->id_galeria = $galeriaid;
         $galimg->nombre = $fileName;
         $galimg->save();
     }
 }