Laravel secara otomatis mengenkripsi atribut model

protected $casts = [
    'secret' => Hash::class.':sha256',
];
Bug Killer