Laravel Microsoft Graph

Middleware

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

Add MsGraphAdminAuthenticated to routes to ensure the user is authenticated:

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

To access token model reference this ORM model:

use Dcblogdev\MsGraph\Models\MsGraphToken;

Copyright © 2024 Laravel - All rights reserved.