Updated code so that the Laravel migration takes place only after the database has been created to ensure that the migration doesn't have to be run again. The changes also enable the php_mcrypt module as previously it was not enabling correctly.