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 middleware does not work #149

Open
rocramer opened this issue May 4, 2019 · 1 comment
Open

Auth middleware does not work #149

rocramer opened this issue May 4, 2019 · 1 comment

Comments

@rocramer
Copy link

rocramer commented May 4, 2019

If I try to apply the auth middleware to the routes, I get redirected to the home page even though I'm logged in. The auth.basic middleware is working fine.

Is this a known issue or am I doing something wrong?

Thanks!

@OlexandrPopov
Copy link

You also need to apply web middleware.

[
    'uri' => "{$route_prefix}/panel",
    'name' => 'pragmarx.health.panel',
    'action' => "{$namespace}@panel",
    '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

2 participants