Laravel unisharp / filemanager和unisharp / ckeditor文件/图像浏览器/上传显示404未找到

时间:2020-04-19 06:39:57

标签: php laravel ckeditor unisharp-file-manager

我已按照filemanagerckeditor

的指示进行操作

我让供应商同时发布了filemanager和债权人,并且供应商在配置中发布了lfm.php

还有php artisan route:clear php artisan config:clear

还尝试在lfm.php中添加'middlewares' => ['web', 'auth'],

在查看文件中

<textarea name="body" class="form-control ckeditor" id="body-texteditor">{!! old('body',$content->body) !!}</textarea>

<script src="{{ asset('vendor/unisharp/laravel-ckeditor/ckeditor.js') }}"></script>
<script>
    $(function () {
        var path_absolute = "{{ url('/') }}";
        var options = {
            filebrowserImageBrowseUrl: path_absolute + '/laravel-filemanager?type=Images',
            filebrowserImageUploadUrl: path_absolute + '/laravel-filemanager/upload?type=Images&_token={{csrf_token()}}',
            filebrowserBrowseUrl: path_absolute + '/laravel-filemanager?type=Files',
            filebrowserUploadUrl: path_absolute + '/laravel-filemanager/upload?type=Files&_token={{csrf_token()}}'
        };

        CKEDITOR.replace('body-texteditor', options);
    })
</script>

这就是它的输出

unisharp filemanager ckeditor

1 个答案:

答案 0 :(得分:0)

也许您忘了加护卫! 或者尝试在config / lfm.php中启用use_package_routes 或使用我的此软件包版本https://github.com/mafftor/laravel-file-manager