Search code examples
ckeditorlaravel-5elfinder

Laravel 5 ElFinder Class replace-this-with-your-middleware does not exist error while browse server


I have configured elfinder in Laravel 5 and also using CKEditor. Everything was fine till until I click on browse server button and then I got "Class replace-this-with-your-middleware does not exist" error.

I have searched the web but I did not find any suitable answer. What can I try next?


Solution

  • You should write your middleware name in elfinder configs.

    for example:

      'route' => [
        'prefix' => 'elfinder',
        'middleware' => 'auth'/*replace-this-with-your-middleware*/, //Set to                       null to disable middleware filter
    ],
    

    image