我在练习Session1和session2的时候报以下错误:
Whoops, looks like something went wrong.
1/1FatalErrorException in Encrypter.php line 66:Call to undefined function Illuminate\Encryption\openssl_encrypt()
in Encrypter.php line 66
已找到
1: 首先检查php.ini中;extension=php_openssl.dll是否存在, 如果存在的话去掉前面的注释符‘;’, 如果不存在这行,那么添加extension=php_openssl.dll。
2: 讲php文件夹下的: php_openssl.dll, ssleay32.dll, libeay32.dll 3个文件拷贝到 WINDOWS\system32\ 文件夹下。
3:如果没有 php_openssl.dll ,点击下载 php_openssl.dll
下载下来有很多个php_openssl,找到你相应php版本下面的php_openssl。