Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me
Laravel Microsoft Graph

Is Connected

Anytime you need to check if MsGraph is authenticated you can call a ->isConnected method. The method returns a boolean.

To do an action when a MsGraph is not connected can be done like this:

if (! MsGraph::isConnected()) {
    return redirect('msgraph/connect');
}
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.

Learn Laravel with Laracasts

Faster Laravel Hosting

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