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

Releases: mll-lab/laravel-graphql-playground

Use FQCN for Route Facade instead of Alias

05 Jul 12:10
Compare
Choose a tag to compare

With this change dependent projects do not have to register the "Route" Facade alias in config/app.php.

v1.0.2

06 May 15:03
Compare
Choose a tag to compare
Fix typo in default configuration (#27)

Improved config file description

17 Apr 16:41
e5a3c52
Compare
Choose a tag to compare
v1.0.1

Update README.md

Improved route configurability

28 Feb 13:54
b07606b
Compare
Choose a tag to compare

The config now allows to pass additional options to the route.

BREAKING

The route option now contains the options that are passed to the route group, whereas the endpoint is now defined in the route_name config key.

Name main route

19 Sep 08:58
390b678
Compare
Choose a tag to compare
Name main route "graphql-playground"

https://laravel.com/docs/5.7/routing#named-routes

Enable route caching

18 Sep 20:34
46ff4e8
Compare
Choose a tag to compare
Enable route caching by adding a dedicated controller (#11)

Without this PR this package adds a route with an anonymous controller function. This is incompatible with native Laravel route caching, causing the following exception:

```bash
$ php artisan route:cache
Route cache cleared!

   LogicException  : Unable to prepare route [graphql-playground] for serialization. Uses Closure.

  at /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php:880
    876|      */
    877|     public function prepareForSerialization()
    878|     {
    879|         if ($this->action['uses'] instanceof Closure) {
  > 880|             throw new LogicException("Unable to prepare route [{$this->uri}] for serialization. Uses Closure.");
    881|         }
    882| 
    883|         $this->compileRoute();
    884| 

  Exception trace:

  1   Illuminate\Routing\Route::prepareForSerialization()
      /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/RouteCacheCommand.php:62

  2   Illuminate\Foundation\Console\RouteCacheCommand::handle()
      /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29

  Please use the argument -v to see more details.
```

With this PR route caching is possible again by introducing a controller class for the playground.

Make DownloadAssetsCommand work for Windows too

15 Sep 16:39
7bc24ba
Compare
Choose a tag to compare
v0.3.1

Make DownloadAssetsCommand work for Windows too (#10)

Add option to download assets to serve them locally

20 Aug 08:25
97e3d44
Compare
Choose a tag to compare
Add option to download assets to serve them locally (#8)

Resolves #5

Laravel 5.7

15 Aug 09:41
Compare
Choose a tag to compare
5.7 support (#7)

Added support for Laravel 5.7

Middleware & more configuration options

02 Aug 11:23
Compare
Choose a tag to compare
Add security related options to config to disable in production and/o…

…r use a custom route (#4)