Skip to content

Commit c9de5d8

Browse files
Update changelog.md
1 parent 8817cd9 commit c9de5d8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

changelog.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,17 @@ All notable changes to `MsGraph` will be documented in this file.
1717
- corrected config publish path
1818

1919
## Version 1.1.2
20-
Add MsGraphAuthenticated to routes to ensure the user is authenticated id:
20+
Added MsGraphAuthenticated to routes to ensure the user is authenticated id:
2121

2222
```
2323
Route::group(['middleware' => ['web', 'MsGraphAuthenticated'], function()
2424
```
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

Comments
 (0)