Homestead Laravel - 需要Mcrypt PHP扩展

I have installed Homestead and I am trying to work on a Laravel project version 4.2 however I keep getting the following error:

Mcrypt PHP extension required.

I have already installed Mcypt installed on the server and I have enabled it into the PHP 7 ini file. This problem does not want to go away for some reason.

Any recommendations to what I can do in order to enable Mcrypt on my virtual box please?

Since php7.1 mcrypt is deprecated so you have to downgrade php to php7.0 or install multiple versions of php but don't forget to enable the right version inside your http server config file

or you can use php built in sever like :

cd project_dir/
php7.0 -S localhost:8000