Skip to content

Commit 2efb664

Browse files
authored
added laravel example for getting a service
1 parent 0ef4263 commit 2efb664

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,15 @@ $storage->buckets->listBuckets('project id');
143143
// get object example
144144
$storage->objects->get('bucket', 'object');
145145
```
146+
147+
Laravel Example:
148+
```php
149+
// returns instance of \Google_Service_Storage
150+
$storage = Google::make('storage');
151+
152+
// list buckets example
153+
$storage->buckets->listBuckets('project id');
154+
155+
// get object example
156+
$storage->objects->get('bucket', 'object');
157+
```

0 commit comments

Comments
 (0)