Skip to content

Commit a074768

Browse files
committed
chore: add example code in README
1 parent db94f5b commit a074768

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ You should set the following ENV variables:
3131

3232
```php
3333
$vestaClient = new Docchula\VestaClient();
34+
// or use Laravel's Facade:
35+
$response = VestaClient::retrieveStudent($identifier, $userEmail, ['title', 'first_name', 'last_name', 'first_name_en', 'last_name_en', 'email', 'nickname']);
36+
if ($response->successful()) {
37+
$data = $response->json();
38+
}
3439
```
3540

3641
## Testing

0 commit comments

Comments
 (0)