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

Not able to use with CKEditor #117

Open
shinokada opened this issue Jan 12, 2016 · 2 comments
Open

Not able to use with CKEditor #117

shinokada opened this issue Jan 12, 2016 · 2 comments

Comments

@shinokada
Copy link

I followed the installation, configuration and views section. I used a fresh Laravel 5.2.7.

After following the instruction:

  • Under public folder I have ckeditor folder and packages/barryvdh/elfinder folder.
  • Under resources/views folder I have vendor/elfinder folder with elfinder.php etc.

I removed middleware in config/elfinder.php.

'route' => [
    'prefix' => 'elfinder',
    'middleware' => '', //Set to null to disable middleware filter
],

I have config.filebrowserBrowseUrl = '/elfinder/ckeditor'; in public/ckeditor/config.js as instructed.

In my view, I have a ckeditor and an image button. I click it and pop-up comes with url of http://localhost:8000/elfinder/ckeditor?CKEditor=content&CKEditorFuncNum=1&langCode=en. But it displays errors:

Whoops, looks like something went wrong.

1/1 
ReflectionException in Container.php line 736:
Class does not exist
in Container.php line 736
at ReflectionClass->__construct('') in Container.php line 736
at Container->build('', array()) in Container.php line 631
at Container->make('', array()) in Application.php line 674
...
....

What am I doing wrong?

@vladvisinescu
Copy link

+1

@Christophvh
Copy link

Change this : 'middleware' => NULL instead of 'middleware' => ''
or if you want to add a middleware for your users be sure to add the new web middleware like so:
'middleware' => ['web', 'auth']

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