glesys/butler-graphql
A Laravel package for adding a GraphQL API to your application. Define schemas, types, queries, and mutations, resolve data from your app, and expose a configurable GraphQL endpoint for flexible, typed client requests.
Butler GraphQL is a Laravel package that generates a GraphQL API from your Eloquent models with minimal configuration. Install via Composer:
composer require glesys/butler-graphql
Publish the config and generate the schema from your models:
php artisan vendor:publish --tag=butler-graphql-config
php artisan butler:generate
Look first at config/butler-graphql.php (type mappings, model discovery paths, middleware) and the generated schema file. A good first use case is exposing a single read-only model — e.g. a Post model with title/body fields — as a queryable type, then adding relations once the basics work.
butler:generate into a Composer script or CI step.How can I help you explore Laravel packages today?