Support the ongoing development of Laravel.io →
Configuration Authentication Views
I‘m a newbie to laravel , trying to get a quick start with it and use command 'php artisan make:auth' to create login and register views etc. 
 I can access the home page successfully now, but everything becomes confusing when I click on the login or register link , it keeps showing an error like this :

 FatalErrorException in Encrypter.php line 66:

 Call to undefined function Illuminate\Encryption\openssl_encrypt()

trust me ,I've been searching for solutions everywhere , but nothing helpful , so any suggestion would be appreciated, thanks in advance !

Last updated 3 years ago.
0

Laravel requires your PHP installation to have OpenSSL. If your PHP installation was not compiled with OpenSSL support, PHP will not have the necessary functions, like openssl_encrypt().

There's an article in the PHP docs on installing OpenSSL, but it doesn't have a lot of detail, though there are some helpful comments. I'd recommend searching for "openssl php" and your OS/server for more specific instructions.

0

tdhsmith said:

Laravel requires your PHP installation to have OpenSSL. If your PHP installation was not compiled with OpenSSL support, PHP will not have the necessary functions, like openssl_encrypt().

There's an article in the PHP docs on installing OpenSSL, but it doesn't have a lot of detail, though there are some helpful comments. I'd recommend searching for "openssl php" and your OS/server for more specific instructions.

Sorry for replying you so late , actually I've done everything you suggested , but still the same issue , finally I had no choice but to reinstall PHP 、laravel ect . And now everything works fine . anyway thanks for your time ! ! !

0

Si ha cerrado XAMPP abajo y reiniciado, puede valer la pena correr el composer installcomando de nuevo, o simplemente correr composer updatepara asegurar que todas las dependencias se están cargando correctamente.

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

QiuZhou qiuzhou Joined 17 Apr 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.