In the process of developing my Angular Application, I have successfully implemented Login and Logout functionalities. Upon clicking logout, the user's status in the Database is updated using Laravel API. However, I am facing the challenge of handling the browser close event. In case the user closes the browser, I still need to update their status in the Database. I am unsure how to trigger the Laravel API call on browser close. Any assistance would be highly valued.