RSS Amplifier

David Carr's Blog · Mar 16, 2026

New Feature: Data Anonymization in Laravel DB Sync

0
Sign in to vote or save

dcblog.dev

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.

https://github.com/dcblogdev/laravel-db-sync

Subscribe to my newsletter for the latest updates on my books and digital products.

Read the original on dcblog.dev

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.