response()->download()出错


Route::get('testResponseDownload',function(){
return response()->download(
realpath(base_path('public/images')).'/laravel-5-1.jpg',
'Laravel学院.jpg'
);
});报错:LogicException in MimeTypeGuesser.php line 135: Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)


Vote Vote Cancel Collect Collect Cancel

<< 上一篇: 通过路由访问任意的方法出错

>> 下一篇: php artisan make:controller AdminController出错