Syncing production data to local/staging just got safer!
Now you can automatically anonymize sensitive user data during sync with a single flag.
php artisan db:production-sync --anonymize
How it works:
✅ Opt-in only (off by default)
✅ Configure which tables/columns to anonymize
✅ Uses Faker for realistic test data
✅ Runs automatically after import
Simple config:
'anonymize' => [
'users' => [
'email' => 'safeEmail',
'name' => 'name',
'phone' => 'phoneNumber',
'password' => 'bcrypt:password',
],
],
Perfect for teams that need production data structures without exposing real customer information.
Subscribe to my newsletter for the latest updates on my books and digital products.

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.