PHP code example of datalogix / laravel-hash-fields
1. Go to this page and download the library: Download datalogix/laravel-hash-fields 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/ */
datalogix / laravel-hash-fields example snippets
namespace App;
use Datalogix\HashFields\HashFields;
use Illuminate\Database\Eloquent\Model;
class YourEloquentModel extends Model
{
use HashFields;
}
/**
* The model's fields to hash.
*
* @var array
*/
protected static $fieldsToHash = [
'password',
];