We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8817cd9 commit c9de5d8Copy full SHA for c9de5d8
changelog.md
@@ -17,8 +17,17 @@ All notable changes to `MsGraph` will be documented in this file.
17
- corrected config publish path
18
19
## Version 1.1.2
20
-Add MsGraphAuthenticated to routes to ensure the user is authenticated id:
+Added MsGraphAuthenticated to routes to ensure the user is authenticated id:
21
22
```
23
Route::group(['middleware' => ['web', 'MsGraphAuthenticated'], function()
24
25
+
26
+Added method getTokenData($id) to return the model object based on the matching user_id from $id
27
+```
28
+public function getTokenData($id = null)
29
+{
30
+ $id = ($id) ? $id : auth()->id();
31
+ return MsGraphToken::where('user_id', $id)->first();
32
+}
33
0 commit comments