Skip to content

Commit

Permalink
Merge pull request #300 from JHWelch/patch-1
Browse files Browse the repository at this point in the history
README updates
  • Loading branch information
Nielsvanpach authored Oct 29, 2024
2 parents 035e2f3 + f042d1c commit 064f288
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This package makes working with a Google Calendar a breeze. Once it has been set
```php
use Spatie\GoogleCalendar\Event;

//create a new event
// create a new event
$event = new Event;

$event->name = 'A new event';
Expand Down Expand Up @@ -74,7 +74,7 @@ php artisan vendor:publish --provider="Spatie\GoogleCalendar\GoogleCalendarServi
```

This will publish a file called `google-calendar.php` in your config-directory with these contents:
```
```php
return [

'default_auth_profile' => env('GOOGLE_CALENDAR_AUTH_PROFILE', 'service_account'),
Expand Down Expand Up @@ -108,7 +108,7 @@ return [
],

/*
* The id of the Google Calendar that will be used by default.
* The id of the Google Calendar that will be used by default.
*/
'calendar_id' => env('GOOGLE_CALENDAR_ID'),
];
Expand Down Expand Up @@ -285,7 +285,7 @@ $event->save();
Alternatively, you can use the update method:

```php
$event = Event::find($eventId)
$event = Event::find($eventId);

$event->update(['name' => 'My updated title']);
```
Expand All @@ -308,8 +308,8 @@ You can set source urls in your events, which are only visible to the creator of
$yourEvent->source = [
'title' => 'Test Source Title',
'url' => 'http://testsource.url',
];
```
];
```

## Setting a color

Expand Down

0 comments on commit 064f288

Please sign in to comment.