Skip to content
This repository has been archived by the owner on Feb 10, 2019. It is now read-only.

Could not publish configuration file #385

Open
i-mighty opened this issue Sep 18, 2018 · 14 comments
Open

Could not publish configuration file #385

i-mighty opened this issue Sep 18, 2018 · 14 comments

Comments

@i-mighty
Copy link

i-mighty commented Sep 18, 2018

Following the instructions in the installation guide for Lumen, running php artisan graphql:publish generates an error,
In LumenServiceProvider.php line 50: Call to undefined method Folklore\GraphQL\LumenServiceProvider::command()

I installed laravel-graphql 1.1.0

@kkomelin
Copy link

kkomelin commented Oct 3, 2018

Laravel 5.7.7 (clean install)
laravel-graphql 1.1.0

I can't publish the config through:

php artisan vendor:publish --provider="Folklore\GraphQL\ServiceProvider"

No errors, just:

Publishing complete.

@mfn
Copy link

mfn commented Oct 3, 2018

Laravel 5.7.7 (clean install)
laravel-graphql 1.1.0

How did you do this?

The latest 1.1.0 release isn't compatible (composer version constraint) with 5.7, i.e. it won't install?

This is fixed in master but no new release was cut.

@kkomelin
Copy link

kkomelin commented Oct 3, 2018

@mfn Thanks for your prompt reply.

Laravel 5.7.7 (clean install)
laravel-graphql 1.1.0

How did you do this?

I just ran composer require folklore/graphql and it set:

"require": {
        "folklore/graphql": "^1.1"
}

From composer.lock:

{
            "name": "folklore/graphql",
            "version": "v1.x-dev",
            "source": {
                "type": "git",
                "url": "https://github.com/Folkloreatelier/laravel-graphql.git",
                "reference": "2c00e91df18ecc827f2f4fac799d1fc50ff8abac"
            },
}

@i-mighty
Copy link
Author

It works fine for Laravel but not for Lumen

@snaketooth10k
Copy link

I'm getting this issue in Laravel 5.7.

"require": {
        "php": "^7.1.3",
        "fideloper/proxy": "^4.0",
        "folklore/graphql": "^1.1.0",
        "laravel/framework": "5.7.*",
        "laravel/tinker": "^1.0"
    },
    "require-dev": {
        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.0"
    },

The config file doesn't publish.

@sadeghhosseini
Copy link

Same problem here. In Laravel 5.7 the command for publishing package does nothing.

@sadeghhosseini
Copy link

sadeghhosseini commented Oct 17, 2018

I added Folklore\GraphQL\ServiceProvider::class to the config/app.php and then ran the publish command and it worked.

EDIT
I just realised that as stated in the README file it supports Laravel >= 5.5.x so it does not support 5.7 yet.

@ivanfilatov
Copy link

For 5.7 support use dev-develop version in composer. That worked for me.

@ElForastero
Copy link

ElForastero commented Oct 24, 2018

The same issue on 5.5.40. Update to 5.5.44 solves the problem.

@i-mighty
Copy link
Author

Please note that for me it all works well for Laravel but not for Lumen.

@budhajeewa
Copy link

I believe (5.7 >= 5.5.x) === true. So not really sure why we have to add Folklore\GraphQL\ServiceProvider::class to the providers array. 🤔

Still experiencing this error with "folklore/graphql": "^1.1" and "laravel/framework": "5.7.*".

@ivanfilatov
Copy link

I believe (5.7 >= 5.5.x) === true. So not really sure why we have to add Folklore\GraphQL\ServiceProvider::class to the providers array. 🤔

Still experiencing this error with "folklore/graphql": "^1.1" and "laravel/framework": "5.7.*".

+1

@Traxo7
Copy link

Traxo7 commented Dec 1, 2018

After clean Lumen install via lumen new blog, and following Lumen instructions:

1- Load the service provider in bootstrap/app.php
$app->register(Folklore\GraphQL\LumenServiceProvider::class);

Running graphql:publish gives error:

$ php artisan graphql:publish
In routes.php line 5:
    Call to undefined method Laravel\Lumen\Application::group() 

EDIT:
It works if we use Lumen 5.6:

$ composer create-project laravel/lumen blog "5.6.*"

So I guess error is only on Lumen 5.7?

@florianlenz
Copy link

I can confirm @Traxo7 assumption.

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

10 participants