该Failed to load magic database
消息是 PHP 错误消息,与 Laravel 无关。
您的 libmagic 安装有问题,或者根本没有安装。
http://php.net/manual/en/ref.fileinfo.php
PHP Warning: finfo::finfo(): Failed to load magic database at '/etc/magic'
PHP Warning: finfo::file(): The invalid fileinfo object
These errors can be rectified by copying your magic database (depending on your distro, this file can be anywhere, on debian it's in /usr/share/file/magic) to /etc/magic.mime
libmagic automatically appends the .mime to the end of the filename, so PHP incorrectly reports the path it was looking for.
The same applies for:
PHP Warning: finfo::finfo(): Failed to load magic database at '/etc/magic.mime'
Unfortunately users will have to call the magic file /etc/magic.mime.mime in this case.