Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CKFinder not working in Laravel 6.0+ #34

Open
Tsuintora opened this issue Nov 18, 2019 · 5 comments
Open

CKFinder not working in Laravel 6.0+ #34

Tsuintora opened this issue Nov 18, 2019 · 5 comments

Comments

@Tsuintora
Copy link

Hello. Thank you very much for your attention.

Followed all the installation instructions, but with @include ('ckfinder :: setup') nothing happens on the page.

  • Cleared all caches.
  • Page in .blade.php extenstion.
  • Auth is off (config/ckfinder, $config['authentication'] = function () { return true;};

What is the problem?

@phongphihung
Copy link

cannot get auth guard session to user login

@Tsuintora
Copy link
Author

cannot get auth guard session to user login

Please, how can i fix it?

@phongphihung
Copy link

phongphihung commented Nov 19, 2019

cannot get auth guard session to user login

file Kernel add StartSession is working, but not return flash message.
protected $middleware = [
\App\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\TrustProxies::class,
\Illuminate\Session\Middleware\StartSession::class,
];

@Tsuintora
Copy link
Author

Tsuintora commented Nov 19, 2019

cannot get auth guard session to user login

file Kernel add StartSession is working, but not return flash message.
protected $middleware = [
\App\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\TrustProxies::class,
\Illuminate\Session\Middleware\StartSession::class,
];

i don't understand...
This is my Kernel.php

protected $middleware = [ \App\Http\Middleware\TrustProxies::class, \App\Http\Middleware\CheckForMaintenanceMode::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \App\Http\Middleware\TrimStrings::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, ];

@neylsongularte
Copy link

In app/Http/Kernel.php

protected $middlewareGroups = [
        ...

        'ckfinder' => [
            'web',
            \App\Http\Middleware\CustomCKFinderAuth::class
        ]
    ];

In config/ckfinder.php
$config['authentication'] = 'ckfinder';

In app/Http/Middleware/CustomCKFinderAuth.php

config(['ckfinder.authentication' => function() {
            return Auth::check();
        }]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants