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

Auth::check() returns false on ElFinder #575

Closed
codeartmk opened this issue Mar 27, 2017 · 3 comments
Closed

Auth::check() returns false on ElFinder #575

codeartmk opened this issue Mar 27, 2017 · 3 comments

Comments

@codeartmk
Copy link

codeartmk commented Mar 27, 2017

The config files seems to be okay, and It is actually working, I can upload without problem, but the Views are messed up on this route.

My sidebar is not rendered and as you can see, in the top menu it asks me to login and reggister.

image

If I return to the /admin route, it is all fine :)

@codeartmk
Copy link
Author

Anyone? I still have this problem

@tabacitu
Copy link
Member

tabacitu commented Apr 3, 2017

Hi @codeartmk ,

I think you might have missed a step in the installation process. You might have published the elFinder files before the Backpack ones. Take a look at your config file for elfinder. Your:

  • config/elfinder.php
  • vendor/backpack/crud/src/config/elfinder.php
    should be the same. I'm mostly concerned about this part:
    /*
    |--------------------------------------------------------------------------
    | Routes group config
    |--------------------------------------------------------------------------
    |
    | The default group settings for the elFinder routes.
    |
    */

    'route' => [
        'prefix'     => config('backpack.base.route_prefix').'/elfinder',
        'middleware' => ['web', 'admin'], //Set to null to disable middleware filter
    ],

    /*
    |--------------------------------------------------------------------------
    | Access filter
    |--------------------------------------------------------------------------
    |
    | Filter callback to check the files
    |
    */

    'access' => 'Barryvdh\Elfinder\Elfinder::checkAccess',

Hope it helps.

Cheers!

@tabacitu tabacitu closed this as completed Apr 3, 2017
@codeartmk
Copy link
Author

Yeah, the only difference I had was in the route array, my middleware was set to null.
Now it is all working.

Thank you

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

2 participants