Docs / Inlay / Introduction

Introduction

Inlay is a Laravel-native visual composition layer for existing applications. A developer registers ordinary Blade files as sections; Inlay gives the people who work with content a packaged admin to compose pages from them, edit their settings, preview against the real frontend, and publish - without the developer building any admin UI of their own.

Supported Laravel versions: 11, 12 and 13. Requires PHP 8.2+, and Livewire ^4.0 for the admin. Rendering a published page never touches Livewire.

Inlay is pre-1.0. The API described in these docs is the current, intended shape, but this isn't yet a stable release.

Core concepts

Concept What it is
Section A full-width band you build in Blade - a hero, a pricing table, an FAQ. Registered once, placed on any page. See Sections.
Block A small piece (a heading, some text, a button) an editor places inside a section's blocks area, in any order. See Blocks.
Page An ordered list of placed sections, each with its own settings, plus a title, a public path and metadata. See The editor.
Page Definition An optional policy restricting which sections a kind of page may contain. See Page Definitions.
Site settings Site-wide content - contact details, header links - edited in the admin and read anywhere. See Site settings.

What Inlay is

  • A package you install into an existing Laravel application, not a standalone CMS.
  • A way to expose a schema-driven subset of your own Blade markup to editors. The settings schema lives next to the markup it feeds.
  • Frontend-agnostic. Sections render through Laravel's real Blade pipeline, in whatever CSS your site already uses. Inlay ships no CSS or JavaScript into your public pages.

What Inlay is not

  • Not a page builder that generates markup. You write the sections and blocks; Inlay stores references to them plus their settings.
  • Not a theming system. Only the admin has its own design, and it can be restyled - see Customising the admin.
  • Not a navigation builder or a media library. See Limitations and roadmap.

Quick example

A section is a Blade file that declares its settings at the top:

{{-- resources/views/inlay/sections/feature.blade.php --}}
<?php

use WeArePixel\Inlay\Schema\Settings;
use WeArePixel\Inlay\SingleFile\Section;

section(
    Section::make('feature')
        ->name('Feature')
        ->settings(Settings::make()
            ->text('heading')->label('Heading')->default('Why it matters')
            ->blocks('content')->label('Content')->allow(['text', 'button'])->max(6)->default([
                ['type' => 'text', 'settings' => ['body' => '<p>Start here.</p>']],
            ]))
);
?>
<section class="py-24">
    <h2>{{ $heading }}</h2>
    {{ $content }}
</section>

Register the directory once:

Inlay::singleFileSections(resource_path('views/inlay/sections'));
Inlay::singleFileBlocks(resource_path('views/inlay/blocks'));

An editor can now add a Feature section to a page, change its heading, add, remove and reorder text and button blocks inside it, preview the result against your real frontend, and publish.

See Installation to get a working admin with one command.

Discovery Call

One call.
We'll both know.

20 minutes to walk through your project, ask the hard questions, and work out honestly if we're the right team for it.

  • One call per day - it gets our full attention
  • Australia's only Laravel Premier Partner
  • Trusted by Chemist Warehouse, HelloFresh and Youfoodz
  • Senior engineers only - no juniors on your project
  • Brisbane-based, onshore team

Press Esc to close  ·  B to reopen