Skip to content

Commit

Permalink
Merge pull request #21 from nezaboravi/evenId-fix
Browse files Browse the repository at this point in the history
Added id param in Calendar::event method
  • Loading branch information
maddhatter committed Aug 19, 2015
2 parents dd3c982 + 6d53b5d commit 838ef99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/MaddHatter/LaravelFullcalendar/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ public function __construct(Factory $view, EventCollection $eventCollection)
* @param string $isAllDay
* @param string|DateTime $start If string, must be valid datetime format: http://bit.ly/1z7QWbg
* @param string|DateTime $end If string, must be valid datetime format: http://bit.ly/1z7QWbg
* @param string $id event Id
* @return SimpleEvent
*/
public static function event($title, $isAllDay, $start, $end)
public static function event($title, $isAllDay, $start, $end, $id = null)
{
return new SimpleEvent($title, $isAllDay, $start, $end);
return new SimpleEvent($title, $isAllDay, $start, $end, $id);
}

/**
Expand Down

0 comments on commit 838ef99

Please sign in to comment.