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');


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

Subscribe to my newsletter

Subscribe and get my books and product announcements.

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