This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.
Step by step instructions on how to get the various keys needed to work with Google Drive can be found on the Github repo as well:
https://github.com/ivanvermeyen/laravel-google-drive-demo/blob/master/README.md#create-your-google-drive-api-keys
Take a look at the commit history to get a quick overview of the demo code I've been adding:
If you have questions or comments, please create an issue on the Github repo. This is easier to follow up and enables others to find the answers as well.
I am getting error while trying to upload file using this controller method:
When I am trying to uplaod in local storage.It's working fine.
But in case of Google storage,I am getting this error:
(1/1) ErrorException
A non well formed numeric value encountered
in GoogleDriveAdapter.php (line 1143)
at HandleExceptions->handleError(8, 'A non well formed numeric value encountered', '/app/vendor/nao-pon/flysystem-google-drive/src/GoogleDriveAdapter.php', 1143, array('iniName' => 'memory_limit', 'val' => '128M', 'last' => 'm'))in GoogleDriveAdapter.php (line 1143)](url)