Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Documentation clarity for middleware #13

Open
paulomunky1 opened this issue Jul 19, 2019 · 0 comments
Open

Documentation clarity for middleware #13

paulomunky1 opened this issue Jul 19, 2019 · 0 comments

Comments

@paulomunky1
Copy link

This is not covered in the documentation so it took me quite a while to figure out.

When adding 'auth' middleware to the config/graphiql.php file, you must also specify 'web'

This isn't something that is required when setting up routes in the Laravel way (eg. via web.php), so it's not very obvious. In other words:

This works

'middleware' => ['web', 'auth']

This does not

'middleware' => ['auth']

Without the 'web' middleware, you are simply redirected back to the same page without any sort of error or message.

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

No branches or pull requests

1 participant