company()->default_password_timeout; if($timeout == 0) $timeout = 30*60*1000*1000; else $timeout = $timeout/1000; Cache::put($user->hashed_id.'_'.$user->account_id.'_logged_in', Str::random(64), $timeout); } }