Three ways to impersonate a user in Laravel
June 10, 2024 — There comes a time when you want to log in or authenticate a user in your application manually. For instance, you have a functionality where admins can mimic a user to perform certain actions. Or you may just want to impersonate a user for testing purposes.