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;
Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Fathom Analytics $10 discount on your first invoice using this link

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.