PHP code example of brendantwhite / databasemask
1. Go to this page and download the library: Download brendantwhite/databasemask library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
brendantwhite / databasemask example snippets
// in app/Models/User.php
/**
* The attributes that should be masked by DatabaseMask.
*
* @var array
*/
protected $masked = [
'name',
'email',
'password',
];
// in app/Models/SomeOtherModel.php
/**
* The attributes that should be masked by DatabaseMask.
*
* @var array
*/
protected $masked = [];