Has anyone encountered the setting up of CKFinder in Laravel? The CKEditor works fine, and when I integrate the CKFinder into it, I get this error: screenshot
use this : https://github.com/ckfinder/ckfinder-laravel-package#configuring-authentication in samples you will see ckeditor and ckfinder
in git bash or cmd or terminal
composer require ckfinder/ckfinder-laravel-package
php artisan ckfinder:download
php artisan vendor:publish --tag=ckfinder
create directory on public folder. the name should be userfiles for middleware use
php artisan make:middleware CustomCKFinderAuth
on config/ckfinder.php change this code:
$config['authentication'] = '\App\Http\Middleware\CustomCKFinderAuth';
on middleware class use
public function handle($request, Closure $next)
{
config(['ckfinder.authentication' => function() {
return true;
}]);
return $next($request);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.