Skip to content

Commit

Permalink
Merge pull request #57 from hammadzafar05/patch-1
Browse files Browse the repository at this point in the history
Documentation Updated
  • Loading branch information
lukas-frey authored Jan 17, 2025
2 parents fe577d2 + 1e9079a commit 7d940df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ All available views are listed in the [calendar documentation](https://github.co
By default, the calendar will be empty. To add events, simply override the `getEvents` method:

```php
use Illuminate\Support\Collection;
use Guava\Calendar\ValueObjects\Event;

public function getEvents(array $fetchInfo = []): Collection | array
{
return [
Expand Down Expand Up @@ -137,7 +140,7 @@ The event object takes all available options like the underlying calendar packag

Below is a list of available methods on the event object:

#### Setting the tile
#### Setting the title
Sets the title of the event that is rendered in the calendar.
```php
Event::make()->title('My event');
Expand Down

0 comments on commit 7d940df

Please sign in to comment.