This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Route::group call is incorrect for Laravel 5.8 #24
Comments
Same issue, had to remove this repo until it has been resolved. Utilizing the GraphQL playground client moving forward. |
@tabirkeland Yep, I just forked it and made the change there. Hoping that someone will update this repo so can drop the fork. |
@nathanburgess that someone could be you. Can you provide a Pull Request? |
I had the same issue. This is because 'route' was renamed to 'route_name'. In this pull request: Just rename config variable and you should be fine. |
@janicerar good find, totally forgot about that. So yeah, that was a breaking change in the https://github.com/mll-lab/laravel-graphql-playground/releases/tag/v1.0.0 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Shared attributes are specified in an array format as the first parameter to the Route::group method.
https://laravel.com/docs/5.8/routing#route-groups
If the first argument to
Route::group
isn't a function, it must be an array.This can be resolved by changing
laravel-graphql-playground/src/GraphQLPlaygroundServiceProvider.php
Line 36 in 8ce8776
to
[config('graphql-playground.route')],
The text was updated successfully, but these errors were encountered: