我正在使用 Laravel 8。我的网站的公共目录是 public_html,我已经对 appservice 提供者进行了适当的更改:
public function register()
{
$this->app->bind('path.public', function() {
return base_path().'/public_html';
});
}
并将 lfm is config 更改为
'base_directory' => 'public_html',
文件管理器正在上传到正确的目录并在子目录中正确制作缩略图,但它的视图是一个损坏的符号。
我很感激任何帮助。