noh4ck / laravel-graphiql by nohac

Graphiql ui for laravel
22,531
46
2
Package Data
Maintainer Username: nohac
Maintainer Contact: jonas.rudlang@gmail.com (Jonas Rudlang)
Package Create Date: 2016-10-12
Package Last Update: 2019-04-06
Language: PHP
License: MIT
Last Refreshed: 2024-04-27 03:00:46
Package Statistics
Total Downloads: 22,531
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 46
Total Watchers: 2
Total Forks: 12
Total Open Issues: 2

GraphiQL for Laravel

This package provides an easy way to include the GraphiQL UI within your laravel project.

Current included version: 0.11.11

Installation

Add this to your composer.json file:

"noh4ck/graphiql": "@dev"

or run composer require "noh4ck/graphiql:@dev"

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:

Graphiql\GraphiqlServiceProvider::class

Then run artisan graphiql:publish to publish the assets and the configuration file.

Usage

Per default, the UI is reachable at /graphql-ui

It points to a GraphQL endpoint at the same host under /graphql

For further configuration, look at config/graphiql.php