Closed nathanburgess closed 5 years ago
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: https://github.com/mll-lab/laravel-graphql-playground/commit/b07606b350c4f61182220394e9c5109a08c3bac3
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 v1.0.0
release. Updated the release description to clarify the config change.
https://github.com/mll-lab/laravel-graphql-playground/releases/tag/v1.0.0
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-groupsIf the first argument to
Route::group
isn't a function, it must be an array.This can be resolved by changing https://github.com/mll-lab/laravel-graphql-playground/blob/8ce87760a5991ba4c9b9d5924f0b0a2811535fc6/src/GraphQLPlaygroundServiceProvider.php#L36 to
[config('graphql-playground.route')],