Text an SHA256 -Konverter in Laravel

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

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