public function store(Request $request)
 {
     if ($request->hasFile('files')) {
         $file = $request->file('files');
         foreach ($file as $files) {
             $filename = $files->getClientOriginalName();
             $extension = $files->getClientOriginalExtension();
             $picture = sha1($filename . time()) . '.' . $extension;
             $folder = project::select('folder')->where('id', session('progetto'))->get();
             //specify your folder
             $destinationPath = public_path() . '/files_clients/' . $folder[0]->folder . '/';
             $files->move($destinationPath, $picture);
             $destinationPath1 = 'http://' . $_SERVER['HTTP_HOST'] . '/files_clients/' . $folder[0]->folder . '/';
             $filest = array();
             $filest['name'] = $picture;
             $filest['size'] = $this->get_file_size($destinationPath . $picture);
             $filest['url'] = $destinationPath1 . $picture;
             $filest['thumbnailUrl'] = $destinationPath1 . $picture;
             $filesa['files'][] = $filest;
         }
         return $filesa;
     }
 }