title: fullcalendar v4-alpha 3 load the events after GET from json
body: <p>I´ve recently changed my fullcalendar version v3.4 to v4 because there are some new options that i need, but i normally use ajax whenever i need to fetch something and i´m used to it. My problem is, i don´t know how to load the events after getting <a href="https://fullcalendar.io/docs/v4/events-json-feed" rel="nofollow noreferrer">this</a> way:</p>
  
  <pre><code>document.addEventListener('DOMContentLoaded', function () {
      let calendarEl = document.getElementById('calendar');
  
      let calendar = new FullCalendar.Calendar(calendarEl, {
          locale: 'pt',
          header: {
              left: 'prev,next today',
              center: 'title',
              right: 'month,agendaWeek,agendaDay,listWeek'
          },
          buttonText: {
              today: 'Hoje',
              listWeek: 'lista',
          },
          events: {
              url: '/agenda/getEvents',
              method: 'GET',
              extraParams: {
                  data: { "_token": "{{ csrf_token() }}" }
              },
          }
      });
      calendar.render();
  });
  </code></pre>
  
  <p>The events are being fetch correctly, but now what?!, where do i implement a <strong>then</strong> or <strong>success</strong> function in order to load them?</p>
  
  <p>Thanks for your time, regards.</p>