Skip to content

Commit

Permalink
if we don’t have a default, it’ll break folks
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed May 1, 2024
1 parent 204bc89 commit 853791e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ private function bootCarbon(): self

private function bootFields(): self
{
if (is_null($collectionHandle = config('events.collection'))) {
return $this;
}
$collectionHandle = config('events.collection', 'events');

Collection::computed($collectionHandle, 'recurrence', function ($entry, $value) {
if ($value) {
Expand Down

0 comments on commit 853791e

Please sign in to comment.