This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku ps:scale web=0 //to stop the heroku app | |
heroku ps:scale web=1 //to start the heroku app | |
heroku run bash // to start the terminal | |
heroku apps // to show all apps | |
git push heroku master // push to master branch of heroku | |
heroku config:set APP_KEY=$(php artisan --no-ansi key:generate --show) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the API client and construct the service object. | |
$client = self::getClient(); | |
$service = new Google_Service_Drive($client); | |
// Now lets try and send the metadata as well using multipart! | |
$file = new Google_Service_Drive_DriveFile(); | |
$file->setName("Hello World!"); | |
$result2 = $service->files->create( | |
$file, | |
array( | |
'data' => file_get_contents(request()->file), |