PHP code example of uraymr / laravel-googledrive-ext
1. Go to this page and download the library: Download uraymr/laravel-googledrive-ext library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
uraymr / laravel-googledrive-ext example snippets
use Illuminate\Support\Facades\Storage;
// Upload a file
Storage::disk('google')->put('docs/example.txt', 'Hello from Laravel 12!');
return \Uraymr\GoogleDrive\Gdrive::previewFile('docs/example.txt');