Skip to content

svilborg/laravel-db-faker-mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel DB Faker Masking

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

About

Database Masking with Faker for Laravel

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy