[英]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.