rhyslees/nova-impersonating-banner
A Laravel Nova package that displays a persistent banner while you're impersonating another user, so you always know you're acting on someone else's behalf. Helps prevent accidental changes made under the wrong account.
composer require rhyslees/nova-impersonating-banner:^3.2
On Laravel 10/11 you can stay on ^3.1 until you upgrade; v3.2.0 is additive (framework support), so it is a safe drop-in either way.app/Providers/NovaServiceProvider.php — add it to tools() if your Nova version requires explicit registration, then check nova-components assets are published (php artisan vendor:publish --tag=nova-impersonating-banner or nova:publish) and run php artisan optimize:clear.README.md for the publish tags/config keys, src/ for the tool class and service provider (that's where banner visibility is decided), and resources/js for the Vue banner component. If the banner is conditional, the condition lives in the service provider or the tool's render/boot path, not in the Vue file.NovaServiceProvider::tools(); do not render the banner manually in layout.blade.php. Keeping it as a Nova tool means it survives Nova upgrades and gets picked up by Nova's asset pipeline automatically.lang/vendor/... if you support more than one locale.3.x that does not declare Laravel 12 support. Require ^3.2 explicitly, and run composer why-not rhyslees/nova-impersonating-banner if the install blocks.php artisan nova:publish and clear compiled views/config (optimize:clear). A banner that "disappeared" after a version bump is very often a cached manifest or an unpublished JS bundle, not a code regression.web admin impersonating an api/tenant user) or with different session drivers per environment is the usual cause of "works locally, not in staging."nova.login or a hard-coded route will break if you've customised Nova's path or added a tenancy prefix.php artisan about to confirm Laravel/Nova versions, (2) confirm the tool is in NovaServiceProvider::tools() and appears under Nova's tools list, (3) check the browser network tab for the tool's JS asset 404, (4) only then dig into the session flag.How can I help you explore Laravel packages today?