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

Commit

Permalink
Namespace tags for php artisan vendor:publish under `graphql-playgr…
Browse files Browse the repository at this point in the history
…ound-` prefix

Resolves #40
  • Loading branch information
spawnia committed Jul 17, 2020
1 parent e852748 commit 81a557c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## v2.3.0

### Changed

- Namespace tags for `php artisan vendor:publish` under `graphql-playground-` prefix

## v2.2.1

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ and assumes a running GraphQL endpoint at `/graphql`.

To change the defaults, publish the configuration with the following command:

php artisan vendor:publish --provider="MLL\GraphQLPlayground\GraphQLPlaygroundServiceProvider" --tag=config
php artisan vendor:publish --tag=graphql-playground-config

You will find the configuration file at `config/graphql-playground.php`.

Expand All @@ -43,7 +43,7 @@ $app->configure('graphql-playground');

To customize the Playground even further, publish the view:

php artisan vendor:publish --provider="MLL\GraphQLPlayground\GraphQLPlaygroundServiceProvider" --tag=views
php artisan vendor:publish --tag=graphql-playground-views

You can use that for all kinds of customization.

Expand Down
4 changes: 2 additions & 2 deletions src/GraphQLPlaygroundServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public function boot(ConfigRepository $config): void

$this->publishes([
self::CONFIG_PATH => $this->configPath('graphql-playground.php'),
], 'config');
], 'graphql-playground-config');

$this->publishes([
self::VIEW_PATH => $this->resourcePath('views/vendor/graphql-playground'),
], 'views');
], 'graphql-playground-view');

if (! $config->get('graphql-playground.enabled', true)) {
return;
Expand Down

0 comments on commit 81a557c

Please sign in to comment.