Ejemplo n.º 1
0
 /**
  * set file / folder which anyone with the link can view
  * @param  string $file_id
  * @return mixed
  */
 public function enablePublic($file_id)
 {
     $result = $this->GoogleApiManager->enablePublic($file_id);
     if ($result === 'success') {
         return redirect()->route('list_files')->with('flash_success', 'Enabled public successfully');
     } else {
         return redirect()->route('list_files')->with('flash_error', $result);
     }
 }