![]() You can also create it manually on the Cloud dashboard. However, it’s not compulsory to create a bucket using the code only. We have programmatically created the bucket in the previous step. Print_r($info) Upload File to Cloud Storage Bucket if you want to print bucket information ![]() Upon creating a bucket, you can get bucket information with the info() method. $response = $storage->createBucket($bucketName) Įcho "Your Bucket $bucketName is created successfully." The below code can be used to create a bucket. For this tutorial, I am keeping the bucket name as artisansweb-bucket. Read more about it on Bucket naming guidelines.
0 Comments
Leave a Reply. |