viacreative/sudo-su
SudoSu is a Laravel package that lets developers quickly log in as any user for testing and debugging. It provides a simple sudo-su page and route for switching accounts without passwords, making it easy to verify permissions and user-specific behavior in development.
@include('sudosu::user-selector') in their layout (the release note recommends wrapping it in @if (env('APP_DEBUG'))). This is a breaking change for any app relying on auto-injection: the feature will silently disappear after upgrade unless the layout is updated.Consider it when:
APP_DEBUG.Look elsewhere (or build in-house) when:
Adoption checklist for 1.1.0: pin the version, add the partial to every relevant layout, confirm APP_DEBUG is false in production so the selector never renders, and verify post-deploy that the selector still appears where support expects it. Decide deliberately between upgrading now (cleaner, less global injection) and staying on 1.0.x (auto-injection, but you inherit the old behavior and drift from upstream).
For executives: This is a low-cost internal productivity capability — letting support and QA see the product exactly as a customer does. It shortens troubleshooting and reduces risky workarounds like shared credentials. It is a small open-source dependency, not a platform investment; treat it as a tactical tool with a known limitation: it does not provide the audit trail or access controls we would need if impersonation becomes a formal, compliance-relevant support process.
For engineering: Version 1.1.0 removes automatic injection of the user-selector markup and assets. Integration is now an explicit @include('sudosu::user-selector') in the layout, ideally wrapped in @if (env('APP_DEBUG')). Treat this as a breaking change: upgrading requires a layout edit in every consuming app, and missing it silently removes the feature rather than erroring. Upside is reduced global surface area and no production markup by default. Recommend pinning the dependency, adding the include behind the debug guard, and validating in staging before rollout. Flag that authorization and audit logging remain our responsibility.
How can I help you explore Laravel packages today?