芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Models/UserDetail.php
belongsTo(User::class, 'user_id'); } public function country() { return $this->belongsTo(Country::class, 'country_id'); } // protected $hidden = [ // 'google2fa_secret', // ]; /** * Ecrypt the user's google_2fa secret. */ // public function setGoogle2faSecretAttribute($value) // { // $this->attributes['google2fa_secret'] = encrypt($value); // } /** * Decrypt the user's google_2fa secret. */ // public function getGoogle2faSecretAttribute($value) // { // return decrypt($value); // } /** * Update User detail information when user logged in * * @param object $user * @param string $time * @param string $ipAddress * @return void */ public function updateUserLoginInfo($user, $time, $ipAddress) { $user->update([ 'last_login_at' => $time, 'last_login_ip' => $ipAddress ]); } }