From c243679d0b079d71bac858e416875a2c8a5d44c8 Mon Sep 17 00:00:00 2001 From: Bartosz Bujak <71066181+bb140856@users.noreply.github.com> Date: Thu, 8 Jun 2023 19:04:40 +0200 Subject: [PATCH] Sample config and sample data provider fix (#59) * Extended class name fix in sample CalendarDataPrivider * Missing comma fix in sample nova-calendar.php config file --- config/nova-calendar.php | 2 +- resources/CalendarDataProvider.default.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/nova-calendar.php b/config/nova-calendar.php index 70dc8c2..362c3b7 100644 --- a/config/nova-calendar.php +++ b/config/nova-calendar.php @@ -26,7 +26,7 @@ Don't forget to add the proper use statement above. This key is required. */ - 'dataProvider' => CalendarDataProvider::class + 'dataProvider' => CalendarDataProvider::class, /* * URI for this Nova Calendar (will be appended to the Nova path, /nova by default) diff --git a/resources/CalendarDataProvider.default.php b/resources/CalendarDataProvider.default.php index b412785..3ab799a 100644 --- a/resources/CalendarDataProvider.default.php +++ b/resources/CalendarDataProvider.default.php @@ -2,11 +2,11 @@ namespace App\Providers; -use Wdelfuego\NovaCalendar\DataProvider\AbstractDataProvider; +use Wdelfuego\NovaCalendar\DataProvider\AbstractCalendarDataProvider; use Wdelfuego\NovaCalendar\Event; use App\Nova\User; -class CalendarDataProvider extends AbstractDataProvider +class CalendarDataProvider extends AbstractCalendarDataProvider { // // Add the Nova resources that should be displayed on the calendar to this method