That's not the point. I know how to get it from the url, when in browser. I want to get it through code, when running Storage('google')->createDir('test');. This method instead of id returns true or false.
Can't get id of folder I created on Google Drive through Storage
I am trying to implement solution to upload files from my Laravel App to Google Drive.
I have installed this package composer require nao-pon/flysystem-google-drive:~1.1, created new Storage method and everything is working fine until I have tried to create folder and put files in that folder.
This method Storage('google')->createDir('test'); is creating new folder named "test" but returns boolean(true|false) and I can't get his id to be able to upload files in that folder.
Code for uploading file in specific folder: $file->store('1hyacMMXcxtJ1lOeqc4WGIgqJMq12jqGQ', 'google');.
I need to know the id ("1hyacMMXcxtJ1lOeqc4WGIgqJMq12jqGQ") of the folder to be able to upload files there.
Any suggestion on how to fix this ?
Please or to participate in this conversation.