This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
Releases: mll-lab/laravel-graphql-playground
Releases · mll-lab/laravel-graphql-playground
Use FQCN for Route Facade instead of Alias
With this change dependent projects do not have to register the "Route" Facade alias in config/app.php
.
v1.0.2
Improved config file description
v1.0.1 Update README.md
Improved route configurability
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
Name main route "graphql-playground" https://laravel.com/docs/5.7/routing#named-routes
Enable route caching
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
v0.3.1 Make DownloadAssetsCommand work for Windows too (#10)
Add option to download assets to serve them locally
Add option to download assets to serve them locally (#8) Resolves #5
Laravel 5.7
5.7 support (#7) Added support for Laravel 5.7
Middleware & more configuration options
Add security related options to config to disable in production and/o… …r use a custom route (#4)