Ckfinder/ckfinder-laravel-package 【2026】

'authentication' => function() $tenant = request()->get('tenant_id'); return auth()->user()->tenant_id === $tenant; , 'backends' => [ 'name' => 'tenant_storage', 'root' => storage_path("app/tenants/$tenant"), ]

// Middleware guard Route::middleware(['auth', 'ckfinder.permissions'])->group(function () CKFinder::routes(); ); ckfinder/ckfinder-laravel-package

This is the most common use case. You need to configure CKEditor to use your Laravel connector URL. function() $tenant = request()-&gt

Implement ThumbnailGeneratorInterface and bind in service provider. tenant_id === $tenant

Note: For production, it is recommended to set more restrictive permissions (e.g., 0755) and ensure the web server user has write access. Essential Configuration

// config/ckfinder.php 'plugins' => [ 'customLogger' => [ 'class' => App\Plugins\CKFinderLogger::class, 'setup' => function($plugin) $plugin->on('ckfinder.fileUpload', function($event) Log::info('File uploaded: ' . $event->file->getFilename()); );