Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Lighthouse

lighthouse-php.com

  • Free plan
  • API
  • Self-hosted

What Lighthouse is

Lighthouse is a free, self-hosted PHP framework for serving GraphQL from Laravel or Lumen applications. It uses GraphQL Schema Definition Language and server-side directives to describe data and add behavior while reusing Laravel concepts and existing Eloquent models. Built-in directives support record creation, relationship resolution, query constraints, pagination, and Laravel validation for fields and arguments. Custom directives let developers add reusable behavior, while the @can directive family can apply Laravel Policies to restrict field operations. The default endpoint is /graphql, and any GraphQL client can use it. Lighthouse supports standard Laravel authentication, including Sanctum, and offers subscriptions for receiving server updates. Parsed queries can be cached with Laravel cache stores or local PHP files using OPcache, and Automatic Persisted Queries support Apollo compatibility. Federation is experimental and cannot serve as a federation gateway. GraphiQL is not included, although separate tooling packages are available.

Who it suits

Lighthouse suits PHP developers building GraphQL APIs on Laravel or Lumen projects. It is intended for teams comfortable with self-hosted deployment and Composer-based installation.

Good to know, and what to watch

  • Free Composer-installable package
  • Uses existing Laravel and Eloquent code
  • Built-in pagination and validation directives
  • Supports authentication and subscriptions
  • Automatic Persisted Queries with Apollo compatibility
  • GraphiQL is not included
  • Federation is experimental
  • Subscriptions do not expire automatically
  • Requires a Laravel or Lumen project

Lighthouse

Free

Free plan

The verdict

Lighthouse focuses GraphQL development around Laravel concepts, Eloquent models, and schema directives. Its free self-hosted model fits teams that want control over deployment and PHP integration, provided the tooling and federation limits are acceptable.

What the maker publishes

Authentication
It supports standard Laravel authentication mechanisms and can use Laravel Sanctum for API authentication. source
Authorization
The @can directive family can use Laravel Policies to restrict field operations to user groups. source
Authorization
The `@can` directive lets Lighthouse use Laravel Policies to restrict field operations. source
Caching
Parsed GraphQL queries can be cached using Laravel cache stores or local PHP files with OPcache. source
CRUD and relationships
Built-in directives support operations such as creating records and resolving Eloquent relationships. source
CSRF mitigation
The optional `EnsureXHR` middleware blocks GET requests and POST requests that can be created using HTML forms to mitigate CSRF attacks. source
Custom directives
Developers can implement custom directives to add reusable behavior to schema definitions. source
Data access features
Built-in directives support Eloquent relationships, pagination, and query constraints. source
Developer tooling
The installation documentation says Lighthouse does not include GraphQL tooling such as GraphiQL and shows GraphQL Playground as a separate package. source
Eloquent
It works with existing Eloquent models and creates optimized database queries out of the box. source
Federation limitation
Federation support is marked experimental, is not enabled by default, and cannot serve as a federation gateway. source
GraphQL endpoint
The default GraphQL endpoint is `/graphql`, and the docs say any GraphQL client can use it. source
Install
The docs install Lighthouse in a project with Composer using `composer require nuwave/lighthouse`. source
Installation
The tutorial installs Lighthouse in a Laravel project with Composer using `composer require nuwave/lighthouse`. source
Laravel and Eloquent
It works on an existing Laravel application and uses Eloquent models to create optimized database queries. source
Laravel integration
It builds a GraphQL server on top of an existing Laravel application and is designed to reuse Laravel concepts and code. source
Lumen support
The docs explain how to configure Lighthouse for Lumen and note that its service providers must be registered individually because Lumen does not support auto-discovery. source
Pagination and validation
Schema directives include pagination and Laravel validation for GraphQL fields and arguments. source
Persisted queries
Automatic Persisted Queries are supported with Apollo compatibility and are enabled by default when query caching is enabled. source
Plugins and tooling
The resources page lists plugins including Lighthouse Sanctum and a Redis broadcaster, and recommends GraphiQL and GraphQL Voyager packages. source
Purpose
Lighthouse is a framework for serving GraphQL from Laravel. source
Purpose
Lighthouse is a framework for serving GraphQL from Laravel. source
Schema approach
It uses GraphQL Schema Definition Language to describe data and server-side directives to add functionality. source
Schema definition
It uses GraphQL Schema Definition Language (SDL) and server-side directives to describe data and add functionality. source

Checked against the maker's pages on 8 Oct 2026.