I use laravel5.1 and it works fine on php cli. But i publish my porject to apache(version == 2.4), the problem happened.
FatalErrorException in Encryp
If you using the Wamp server then it's happens. In Xampp server there is no need to uncomment php_openssl.dll.
To solve this Remove the semicolon before
extension = php_openssl.dll
in php.ini