PHP code example of akbarjoudi / ckfinder-laravel-package

1. Go to this page and download the library: Download akbarjoudi/ckfinder-laravel-package library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

akbarjoudi / ckfinder-laravel-package example snippets


$config['authentication'] = '\App\Http\Middleware\CustomCKFinderAuth';

public function handle($request, Closure $next)
{
    config(['ckfinder.authentication' => function() {
        return true;
    }]);
    return $next($request);
}

// vendor/ckfinder/ckfinder-laravel-package/src/routes.php

Route::any('/ckfinder/examples/{example?}', 'CKSource\CKFinderBridge\Controller\CKFinderController@examplesAction')
    ->name('ckfinder_examples');
bash
    php artisan ckfinder:download
    
bash
    php artisan vendor:publish --tag=ckfinder
    
bash
php artisan make:middleware CustomCKFinderAuth