Middleware

To restrict access to routes only to authenticated users there is a middleware route called MsGraphAuthenticated

Add MsGraphAuthenticated to routes to ensure the user is authenticated:

Route::group(['middleware' => ['web', 'MsGraphAuthenticated'], function()

To access token model reference this ORM model:

use Dcblogdev\MsGraph\Models\MsGraphToken;

 

Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.