Problem with PHP Laravel accessing Calendar with Microsoft Graph using Microsoft Tutorial Code

Elwyn Morgan 11 Reputation points
2021-01-29T18:06:57.717+00:00

I am following the (PHP Laravel) Microsoft Graph Tutorial and using the code provided by Microsoft: https://learn.microsoft.com/en-us/graph/tutorials/php?tutorial-step=3
(Full code is here) . It is a tutorial that ultimately accesses teh Microsoft365 Calendar via GRaph

have come a long way and am able to access data in JSON format (as per tutorial). However when I try to access the data via the calendar.blade using the code provided The following laravel blade code does not work:

First <h2>{{ $dateRange }}</h2> dateRange is undefined. (must be a built in Microsoft function

If this line is removed then next line of code: :

<a class="btn btn-light btn-sm mb-3" href={{action('CalendarController@getNewEventForm')}}>New event</a>

produces another error:

InvalidArgumentException
Action CalendarController@getNewEventForm not defined. (View: C:\xampp\htdocs\graph-tutorial\resources\views\calendar.blade.php)

I

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,447 questions
{count} votes