Skip to content

Commit

Permalink
add config tag to publish config file, update Read.me
Browse files Browse the repository at this point in the history
  • Loading branch information
sssurii committed Dec 17, 2023
1 parent 55d0314 commit 1a25140
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ To publish the config, run the vendor publish command:
INSAN\ICS\ICSServiceProvider::class,
```
Then simply load class as above case above.
Then simply load class as in step 1.

3. Use package class as below:

Set various event details, pass properties as array while initializing class:
```
$properities = [
$event_properties = [
'uid' => uniqid(),
'sequence' => 0,
'description' => 'Event Invitation via email.',
Expand All @@ -40,8 +40,8 @@ Set various event details, pass properties as array while initializing class:
'summary' => 'This is an event invitation sent through email.',
'location' => 'VR Punjab, S.A.S Nagar, Chandigarh',
'url' => 'www.example.com',
]
$ics_file = new ICS($properities);
];
$ics_file = new ICS($event_properties);
return $ics_file->toString();
```
Some optional properties can be set as below, like set organizer details
Expand Down
2 changes: 1 addition & 1 deletion src/ICSServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public function boot(): void
{
$this->publishes([
__DIR__.'/../config/ics.php' => config_path('ics.php'),
]);
], 'config');
}
}

0 comments on commit 1a25140

Please sign in to comment.