Put sha1 ($str,true) into sqlsrv in laravel?

1. Such as the title.

2.laravel reported an error The Response content must be a string or object implementing _ _ toString (), "boolean" given.
looked up some information and said that the json_encode illegal character is the binary.

3. Using the native sql statement, it doesn"t work, so I don"t know what to do for the time being. Ask for help.

Mar.23,2021

finally uses the HASHBYTES ('SHA1',$str) that comes with sqlsrv, and then inserts it.

Menu