我运行laravel new auth并得到以下错误。如果有帮助,我会使用Windows 7。
C:\wamp\www>laravel new auth
Crafting application...
> php -r "copy('.env.example', '.env');"
> php artisan clear-compiled
Fatal error: Call to undefined function Illuminate\Foundation\Bootstrap\mb_inter
nal_encoding() in C:\wamp\www\auth\bootstrap\cache\compiled.php on line 2117
PHP Fatal error: Call to undefined function Illuminate\Foundation\Bootstrap\mb_
internal_encoding() in C:\wamp\www\auth\bootstrap\cache\compiled.php on line 211
7
Script php artisan clear-compiled handling the post-install-cmd event returned w
ith an error
[RuntimeException]
Error Output: PHP Fatal error: Call to undefined function Illuminate\Found
ation\Bootstrap\mb_internal_encoding() in C:\wamp\www\auth\bootstrap\cache\
compiled.php on line 2117
答案 0 :(得分:1)
取消注释php.ini中的以下行
;extension=php_mbstring.dll
;extension=php_exif.dll ; Must be after mbstring as it depends on it
;extension=php_mysql.dll
;extension=php_mysqli.dll
然后重启apache。
Mbstring是制作强哈希所必需的。
答案 1 :(得分:0)
从C:\ wamp \ www \ auth \ bootstrap \ cache \这个目录中删除所有文件,然后运行
composer install
来自终端