@@ -10,7 +10,7 @@ This package makes working with a Google Calendar a breeze. Once it has been set
10
10
``` php
11
11
use Spatie\GoogleCalendar\Event;
12
12
13
- //create a new event
13
+ // create a new event
14
14
$event = new Event;
15
15
16
16
$event->name = 'A new event';
@@ -74,7 +74,7 @@ php artisan vendor:publish --provider="Spatie\GoogleCalendar\GoogleCalendarServi
74
74
```
75
75
76
76
This will publish a file called ` google-calendar.php ` in your config-directory with these contents:
77
- ```
77
+ ``` php
78
78
return [
79
79
80
80
'default_auth_profile' => env('GOOGLE_CALENDAR_AUTH_PROFILE', 'service_account'),
@@ -108,7 +108,7 @@ return [
108
108
],
109
109
110
110
/*
111
- * The id of the Google Calendar that will be used by default.
111
+ * The id of the Google Calendar that will be used by default.
112
112
*/
113
113
'calendar_id' => env('GOOGLE_CALENDAR_ID'),
114
114
];
@@ -285,7 +285,7 @@ $event->save();
285
285
Alternatively, you can use the update method:
286
286
287
287
``` php
288
- $event = Event::find($eventId)
288
+ $event = Event::find($eventId);
289
289
290
290
$event->update(['name' => 'My updated title']);
291
291
```
@@ -308,8 +308,8 @@ You can set source urls in your events, which are only visible to the creator of
308
308
$yourEvent->source = [
309
309
'title' => 'Test Source Title',
310
310
'url' => 'http://testsource.url',
311
- ];
312
- ```
311
+ ];
312
+ ```
313
313
314
314
## Setting a color
315
315
0 commit comments