有人在Laravel中遇到过CKFinder的设置吗?CKEditor运行良好,当我将CKFinder集成到其中时,我得到这个错误:screenshot
发布于 2019-07-31 19:50:26
在示例中使用此命令:https://github.com/ckfinder/ckfinder-laravel-package#configuring-authentication您将看到ckeditor和ckfinder
在git bash或cmd或终端中
composer require ckfinder/ckfinder-laravel-package
php artisan ckfinder:download
php artisan vendor:publish --tag=ckfinder在公用文件夹上创建目录。名称应为userfiles以供中间件使用
php artisan make:middleware CustomCKFinderAuth在config/ckfinder.php上更改以下代码:
$config['authentication'] = '\App\Http\Middleware\CustomCKFinderAuth';关于中间件类的使用
public function handle($request, Closure $next)
{
config(['ckfinder.authentication' => function() {
return true;
}]);
return $next($request);
}https://stackoverflow.com/questions/47547332
复制相似问题