[英]Laravel + CKEditor + CKFinder
在样本中使用它: 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
在公用文件夹上创建目录。 名称应为中间件使用的用户文件
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);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.