Installation
Lattice adds a server-driven UI layer to a Laravel application running Inertia with the React adapter.
Requirements
Section titled “Requirements”| Requirement | Version |
|---|---|
| PHP | 8.4+ |
| Laravel | 11, 12, or 13 |
| Inertia (Laravel + React) | v3 |
| React | 19 |
| Tailwind CSS | 4 |
How Lattice is delivered
Section titled “How Lattice is delivered”Lattice ships as two coordinated packages:
lattice-php/latticeon Composer — the PHP layer that describes pages, forms, tables, actions, and menus and serializes them to typed component trees.@lattice-php/latticeon npm — the React renderer that turns those trees into rendered UI in the browser.
Both packages are cut from the same release, so a given Composer version always has a matching npm version — the renderer can’t drift from the server that serialized the page. Install the Composer package below, then add the npm package in Frontend Setup.
Install the package
Section titled “Install the package”composer require lattice-php/latticeThe service provider is registered automatically through Laravel package discovery, so there is nothing to add to bootstrap/providers.php.
Publish the configuration
Section titled “Publish the configuration”Publish config/lattice.php to customize discovery paths, endpoints, and middleware:
php artisan vendor:publish --tag="lattice-config"See Configuration for what each option controls.
Set up the frontend
Section titled “Set up the frontend”Install the React renderer and wire it into your Inertia entrypoint once: add the npm package, import its stylesheet, and register the page component. Follow Frontend Setup.
Next steps
Section titled “Next steps”- Frontend Setup — wire the React renderer into Inertia.
- Quickstart — build and route your first page.
- Configuration — discovery, endpoints, and middleware.