我有供应商发布了文件管理器和债权人,供应商在配置中发布了 lfm.php
还 php artisan route:clear
php artisan config:clear
还尝试添加'middlewares' => ['web', 'auth'],
lfm.php
在视图文件中
<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>
这就是它的输出