mll-lab / laravel-graphql-playground

This project is deprecated in favor of https://github.com/mll-lab/laravel-graphiql.
MIT License
267 stars 25 forks source link

When i setup this packge i got error #25

Closed xerk closed 5 years ago

xerk commented 5 years ago

When setup this packge in lighhouse tutorial i got this error what i can do now?

Composer

"require": {
        "php": "^7.1.3",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "5.7.*",
        "laravel/tinker": "^1.0",
        "mll-lab/laravel-graphql-playground": "^1.0",
        "nuwave/lighthouse": "^2.6"
    },

Error

In Router.php line 363:  
Argument 1 passed to Illuminate\Routing\Router::group() must be of the type array, string giv     en,
called in D:\Laravel\lighthouse-tutorial\vendor\laravel\framework\src\Illuminate\Support\ Facades\Facade.php on line 223
--
In Router.php line 363:  
Argument 1 passed to Illuminate\Routing\Router::group() must be of the type
array, string given, called in D:\Laravel\lighthouse-tutorial\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 223
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with er ror code 1
--
spawnia commented 5 years ago

Can you post the contents of your config file?

xerk commented 5 years ago

Can you post the contents of your config file?

<?php

return [
    // Route for the frontend
    'route' => 'graphql-playground',

    // Which middleware to apply, if any
    'middleware' => [
        // 'web',
    ],

    // Route for the GraphQL endpoint
    'endpoint' => 'graphql',

    // Control if the playground is accessible at all
    // This allows you to disable it completely in production
    'enabled' => env('GRAPHQL_PLAYGROUND_ENABLED', true),
];

problem is here 'route' => 'graphql-playground',

spawnia commented 5 years ago

Yeah that is the config for v0. Compare it to the new one given in v1