We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e9b10 commit 4dfbb0cCopy full SHA for 4dfbb0c
src/Auth/Auth.php
@@ -116,6 +116,7 @@ public function attempt($credentials)
116
$jwt->browser = \Request::get('browser');
117
$jwt->os = \Request::get('os');
118
$jwt->device = \Request::get('device');
119
+ $jwt->ip = \Request::get('ip');
120
$jwt->active = true;
121
$jwt->guard = $this->guard;
122
$jwt->save();
@@ -183,6 +184,14 @@ public function id()
183
184
185
}
186
187
+ public function auths()
188
+ {
189
+ $auths = KauthModel::where('user_id',$this->id())
190
+ ->orderBy('id','desc')
191
+ ->get();
192
+ return $auths;
193
+ }
194
+
195
/**
196
*
197
* auth logout
0 commit comments