GraphiQL for Laravel
This package provides an easy way to include the GraphiQL UI within your laravel project., (*1)
Current included version: 0.11.11, (*2)
Installation
Add this to your composer.json file:, (*3)
"noh4ck/graphiql": "@dev"
or run composer require "noh4ck/graphiql:@dev", (*4)
If you have Laravel 5.5 or above, automatic package discovery will register the provider automatically.
If not, open your config/app.php and add this line in the providers section:, (*5)
Graphiql\GraphiqlServiceProvider::class
Then run artisan graphiql:publish to publish the assets and the configuration file., (*6)
Usage
Per default, the UI is reachable at /graphql-ui, (*7)
It points to a GraphQL endpoint at the same host under /graphql, (*8)
For further configuration, look at config/graphiql.php, (*9)