Implement auth snapshot and restore for database resets (#1295)
Commit: 3e8772f6b9d72e861ae33624e6dca9c0d574b086
Date: 2026-05-13 16:34:12 +0000
Author: PascalHavelange
Commit Message
Implement auth snapshot and restore for database resets (#1295)
* feat(auth): implement auth snapshot and restore commands to preserve user data during database resets
* fix: clear Spatie permission cache in AuthSnapshotCommandTest setUp
* fix: use firstOrCreate for permission/role in AuthSnapshotCommandTest to handle ensurePermissionsExist pre-seeding
---------
Co-authored-by: Pascal HAVELANGE <havelangep@hotmail.com>
Files Changed
- 📝 Modified:
.github/agents/legacy-importer.agent.md - ✅ Added:
app/Console/Commands/CreateAuthSnapshot.php - ✅ Added:
app/Console/Commands/RestoreAuthSnapshot.php - 📝 Modified:
docs/deployment/command-line-user-management.md - 📝 Modified:
docs/deployment/development-setup.md - 📝 Modified:
scripts/Reset-Database.ps1 - 📝 Modified:
scripts/importer/README.md - ✅ Added:
tests/Console/AuthSnapshotCommandTest.php
Links
This documentation was automatically generated from Git commit data.