Skip to content

added methods

Choose a tag to compare

@dcblogdev dcblogdev released this 02 Nov 11:31
· 296 commits to master since this release
c9de5d8

Added MsGraphAuthenticated to routes to ensure the user is authenticated id:

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

Added method getTokenData($id) to return the model object based on the matching user_id from $id

public function getTokenData($id = null)
{
    $id = ($id) ? $id : auth()->id();
    return MsGraphToken::where('user_id', $id)->first();
}