svilborg / laravel-db-faker-mask
Laravel DB Masking
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- laravel/framework: 5.*
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.5
- fzaninotto/faker: ~1.4
- mockery/mockery: 0.9.*
- phpunit/phpunit: ^7.0
- dev-master
- v0.5.0
- dev-dependabot/composer/phpunit/phpunit-9.5.8
- dev-dependabot/composer/symfony/http-kernel-4.4.29
- dev-dependabot/composer/symfony/http-foundation-4.4.29
- dev-dependabot/composer/symfony/error-handler-4.4.27
- dev-dependabot/composer/league/flysystem-1.1.4
- dev-dependabot/composer/laravel/framework-6.20.26
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/composer/composer-1.10.22
- dev-dependabot/composer/mockery/mockery-1.4.3
- dev-dependabot/composer/fzaninotto/faker-1.9.2
- dev-dependabot/composer/barryvdh/laravel-ide-helper-2.7.0
This package is auto-updated.
Last update: 2024-11-29 05:33:30 UTC
README
Configuration
Available in config/db_mask.php
Sample configuration file
return [ /* * |-------------------------------------------------------------------------- * | DB Mask rules * |-------------------------------------------------------------------------- * | */ 'chunk' => 1000, 'tables' => [ 'users' => [ 'firstname' => 'firstName', 'lastname' => 'lastName', 'email' => function (Faker $faker) { return $faker->email; }, 'number' => function (Faker $faker, array $record) { return $record['id'] . $faker->numberBetween(0, 100000); } ] ] ];
Usage
artisan db:mask