我已按照filemanager和ckeditor
的指示进行操作我让供应商同时发布了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>
这就是它的输出
答案 0 :(得分:0)
也许您忘了加护卫!
或者尝试在config / lfm.php中启用use_package_routes
或使用我的此软件包版本https://github.com/mafftor/laravel-file-manager