laravel - Call to undefined function IlluminateEncryptionopenssl_cipher_iv_length() on php artian serve

I tried everything on the stack overflow to get rid of this error.
I created alaravel project in xampp
and when i run the command
php artisan serve
This error shows:
"Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()"
I already uncommented the open ssl extention and set extension path ext.
I tried this on differnt local development servers like xampp, uniserver etc. Everything shows the same issue.
I even put the libeay32.dll and ssleay32.dll in roor folder and restarted the apache. Tried artisan key generation. I've tried every possible answers found on stack overflow. Still getting this issue.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: undefined array key
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.