generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
130 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Saade\FilamentFullCalendar\Widgets\Concerns; | ||
|
||
trait CanFetchEvents | ||
{ | ||
/** | ||
* FullCalendar will call this function whenever it needs new event data. This is triggered when the user clicks prev/next or switches views. | ||
* | ||
* Commented out so we can save some requests :) Feel free to extend it. | ||
* | ||
* @see https://fullcalendar.io/docs/events-function | ||
* @param array $fetchInfo start and end date of the current view | ||
* @param array $ignorableIds ids of the events that are already loaded and should be ignored | ||
*/ | ||
// public function fetchEvents(array $fetchInfo, array $ignorableIds): array | ||
// { | ||
// return []; | ||
// } | ||
|
||
public static function canFetchEvents(): bool | ||
{ | ||
return method_exists(static::class, 'fetchEvents'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters