Teks ke konverter SHA256 di Laravel

$hash = Hash::make('secret');

$input = 'secret';
if(Hash::check($input, $hash)){
    // the input matches the secret
}
surati_coding