Appearance
Nova
Introduction
kitloom supports Laravel Nova 5 through - packages built on the same domain packages as the Filament ones. A Nova site and a Filament site share content, settings and modules; only the admin differs.
Requirements: Laravel Nova 5 (licensed), Laravel 13.36 or newer. The Nova skeleton runs on the current Laravel 13 with Nova 5.11. Every kitloom package is commercial, the - packages as much as the - ones.
Inertia
Nova runs on Inertia, and so do Vue themes (kitloom/). Both share the server package inertiajs/: the themes require ^3., which Nova 5 accepts, so one install serves both.
Setting up Nova
Install Nova as usual. In Nova, let in whoever has something to do in it — a permission beyond reading the site (Kitloom\). Customers and subscribers stay out, as WooCommerce keeps them out of wp-, and use their account on the site; a user without a role stays out too:
php
// app/Providers/NovaServiceProvider.php
protected function gate(): void
{
Gate::define('viewNova', fn (User $user): bool => app(AdminAccess::class)->allows($user));
}The Nova skeleton serves Nova at / (NOVA_). Its Nova lists only the application's own dashboard and its Users tool (App\: All Users, Add New User, Profile and Roles); everything else comes from the packages.
While Nova serves a request, kitloom/ switches the request to Visibility::: the admin sees drafts, private posts and the trash, and the resources decide by capability what each row may have done to it.
How modules attach
A - package registers its resources and tools itself, inside Nova::, and does nothing when Nova is not installed:
php
use Kitloom\WpSchema\Nova\Support\ResourceOverride;
use Laravel\Nova\Nova;
public function boot(): void
{
if (! class_exists(Nova::class) || ! (bool) $this->app->make('config')->get('kitloom-redirects.nova.register', true)) {
return;
}
Nova::serving(function (): void {
$redirection = ResourceOverride::find(RedirectionResource::class, Nova::$resources);
$notFoundLog = ResourceOverride::find(NotFoundLogResource::class, Nova::$resources);
Nova::resources([$redirection, $notFoundLog]);
Nova::tools([new Redirects($redirection, $notFoundLog, (bool) $this->app->make('config')->get('kitloom-redirects.nova.menu', true))]);
});
}kitloom- removes a package's admin entirely. A few packages — Redirections, Internal Links, Search & Replace, Import & Export — also have kitloom-, which removes only their sidebar section, so the site can list the resources in its own menu. See Configuration.
Overriding a resource
To customise a kitloom resource, extend it and register your class in Nova. kitloom packages look for a subclass among the registered resources (Resource) and register yours instead of their own — no two resources on one URL:
php
namespace App\Nova;
use Kitloom\Redirects\Nova\Resources\RedirectionResource as BaseResource;
class RedirectionResource extends BaseResource
{
public static $perPageOptions = [50, 100];
}The resource's model comes from the model registry, so swapping the model does not require overriding the resource.
The ready-made Posts, Pages, Categories and Tags work the same way: a subclass of Blog, Page, Category or Tag replaces the package's. An application whose resources extend the base Post / Term instead turns the ready-made ones off with kitloom-.
Form tabs
Modules add tabs to other resources' forms — SEO, Custom Fields — through Kitloom\ implementations tagged Form. A Nova form section says which resources it applies, returns its fields() and the meta it owns, and may prepare or save a value itself (prepare, save); the resource writes those meta keys in the same pass as its own.
Resources that use the Has trait show them; every kitloom content resource does. Your own resource builds its form with with — its fields become the first tab, Content, and the modules' tabs follow:
php
use Kitloom\WpSchema\Nova\Contracts\HtmlEditor;
use Kitloom\WpSchema\Nova\Forms\HasFormSections;
use Kitloom\WpSchema\Nova\Resources\PostResource;
class BookResource extends PostResource
{
use HasFormSections;
/**
* Nova needs the model as a static property; a post type's model extends `Post`.
*/
public static $model = Book::class;
protected static function type(): string
{
return 'book';
}
public function fields(NovaRequest $request)
{
return [
$this->withFormSections($request, [
...parent::fields($request),
app(HtmlEditor::class)->field(__('Content'), 'post_content')->fullWidth()->hideFromIndex(),
]),
];
}
}Settings pages
kitloom/ provides Kitloom\: a sidebar section with settings pages. A module extends it, declares its pages in boot() with static:: and links to them from menu() with static:::
php
use Kitloom\Settings\Nova\SettingsTool;
use Kitloom\WpSchema\Nova\Menu\ModuleHelpItem;
use Laravel\Nova\Menu\MenuItem;
use Laravel\Nova\Menu\MenuSection;
class Reviews extends SettingsTool
{
public function boot(): void
{
static::page('reviews', __('Reviews Settings'), fn () => [
Boolean::make(__('Hold new reviews for moderation'), 'reviews_moderation'),
Number::make(__('Reviews per page'), 'reviews_per_page'),
], ReviewsSettings::class);
}
public function menu(Request $request)
{
return MenuSection::make(__('Reviews'), array_values(array_filter([
MenuItem::make(__('All Reviews'), '/resources/reviews'),
MenuItem::link(__('Settings'), static::pageUrl('reviews'))
->canSee(fn (): bool => static::canSeePage('reviews')),
ModuleHelpItem::make('acme/reviews'),
])))->collapsable();
}
}A page opens at / (kitloom-). Its fields are ordinary Nova fields — panels, tab groups and Rows included. A field without its own fill saves into the option named by its attribute: a string as is, a yes/no as 1/0, an array as JSON; the values go through Setting. The fourth argument of page() is what the Gate is asked about before the page opens or saves — declare a permission that covers it; without it the page needs manage_.
Pages of the shared Settings section (Media, Reading, Discussion, Privacy, Cache) are Kitloom\ implementations tagged Site. A module's own settings go into its own section, as above.
The module's section
Each module has one sidebar section, named after the module: its screens, then Settings, then How it works last. Kitloom\ is that last item — the module's README at /, served by kitloom/. It returns null when that package is not installed, the module has no README or KITLOOM_ is false (see Enabling & Disabling), hence the array_.
Rows
Kitloom\ is a list of rows, each taking one of the field's layouts with that layout's fields — added, removed, moved and collapsed on the form. Modules use it for slides, repeaters and flexible-content custom fields, on resources and on settings pages:
php
use Kitloom\WpSchema\Nova\Fields\Rows;
Rows::make(__('Chapters'), 'chapters')
->layout('chapter', __('Chapter'), [
Text::make(__('Title'), 'title'),
Number::make(__('First page'), 'page'),
])
->button(__('Add Chapter'))
->max(50);A row is ['layout' => name, 'key' => string, 'values' => [attribute => value]]. Without rows(get: the rows are read from the attribute — a list, as JSON or serialized — and written back as a list. layout() takes a $limit for that layout and readonly; collapsed() folds the rows that are there.
Revisions
A record's detail page has a Revisions tab while there is a saved version to go back to: each version (when, by whom, "AI agent" for an agent's) opens to show what restoring it would change. Restore a revision in the actions menu picks one and brings it back; the restore is saved as the newest version, so it can be undone the same way.
Visual editor
Post and page text and WYSIWYG custom fields take their editor from the Kitloom\ contract — app(Html. By default it is a code field with html highlighting, which saves the markup byte for byte. kitloom/ binds TinyMCE 6 instead:
bash
composer require kitloom/visual-editor-novaIt keeps WordPress markup — block comments, shortcodes, attributes — and sends a text only after it was changed. With kitloom/ the toolbar has Add Media, the library window. config/ (shared with the Filament editor) sets the height, the site's styles and TinyMCE options; VISUAL_ brings the code field back. The script is built into the package, so installing it needs no build. To use another editor, bind Html in your application's provider — see Extension Points › The HTML editor.
Shortcodes in the editor
With kitloom/ the toolbar has Shortcode: every tag the site draws, each opening a small form — a contact form or a slider picked by name, a gallery from the media library, a widget's own settings, or a field per attribute for any other tag. The shortcode goes into the text as plain text; typing [ offers the same tags, and a click on a shortcode in the text opens it again. Shortcodes › In the visual editor.
Media library and featured image
kitloom/ adds the Media section — Library and Add New Media File — and Settings → Media (/). A library entry is the WordPress attachment itself, so files uploaded by WordPress or by the Filament admin are there too.
Every post form that takes Post's fields opens with Featured Image, stored as WordPress keeps it: the attachment id in _, deleted when the field is emptied. The field — like image, file and gallery custom fields and category thumbnails — is the Kitloom\. Without the media admin it is a searchable list of attachment titles; kitloom/ binds the library window with search and uploads, and post lists then open each row with the featured image. kitloom- set to false keeps the plain list.
For a field of your own, Kitloom\ picks files from the library: Media, - for several, - for more than images.
Two-factor sign-in
The Two-Factor Authentication module (kitloom/ with kitloom/) uses Nova's own two-factor screens, which are Laravel Fortify's; the application does not list Features:: — the package adds it. After the password, Nova asks for a code from an authenticator app or a recovery code. Users set it up on Nova's User Security screen. Two-Factor Authentication → Settings (/) picks the roles that must use it and resets another user's factors. The factors are user meta, not Fortify's users. columns.
The sidebar
Nova keeps one Nova:: callback. The Admin Menu module (kitloom/ with kitloom/) registers it and lets administrators arrange the sidebar from the admin itself, at /, without touching code:
- reorder and nest entries by dragging, and move them between sections;
- rename any section or entry, and set its icon (a Heroicon name);
- hide what the site does not use — the page still opens by its address;
- restrict a section or an entry to permissions, so each role sees a menu of its own;
- add sections, groups and links of your own — to a page of the admin or to any URL — and delete them again;
- reset to what the packages build.
The edits are applied on top of whatever the application and the packages build; see Admin Menu.
bash
composer require kitloom/admin-menu kitloom/admin-menu-nova
php artisan migrateThe edits live in the menu_ table, shared with the Filament screen; the screen is for those who may manage_. Entries nobody placed land at kitloom-. An application with a Nova:: callback of its own sets kitloom- to false, calls Admin from inside it and lists Admin among its tools.
The Nova skeleton uses it, with migrations that arrange the sidebar in WordPress order: Dashboard, Posts, Media, Pages, Comments, Appearance (Themes, Menus, Admin Menu, Widgets), Modules, Users, Tools, Settings, then the plugin sections. Its config/ sets default_ to 0, so a newly installed module's section sinks to the bottom until someone places it.
What's where
| Section | Package |
|---|---|
| Posts (posts, categories, tags), Pages, Comments | kitloom/ |
| Settings → General, Writing, Permalinks, Widgets; the raw options editor | kitloom/ |
| Users → All Users, Add New User, Profile | the application (App\, App\) |
| Users → Roles; the role field and filter | kitloom/ |
| Media → Library, Add New Media File; Settings → Media; the library as attachment picker | kitloom/ |
| Menus, Menu Locations | kitloom/ |
Appearance → Themes (/); Settings → Reading, Privacy (/), Cache (/) | kitloom/ |
| Tools → Shortcodes (a section of its own) | kitloom/ |
Modules → Installed Modules (/); the How it works pages | kitloom/ |
Admin Menu (/) | kitloom/ |
| Custom Fields → Post Types, Taxonomies; a section per type | kitloom/ |
| The visual editor | kitloom/ |
| Module sections | see the catalog |
Differences from Filament
Every module in the catalog has both a Filament and a Nova package, built on the same domain package. Where they differ:
| Filament | Nova | |
|---|---|---|
| Licence | Commercial, as every kitloom package | Commercial, as every kitloom package |
| Menu order | Menu, from the packages themselves | kitloom/ and the site's migrations |
| Module settings | Settings subclass, at / | Settings, at / |
| Blocks from modules | Collapsible sections under the form | Tabs after Content |
| Html editor by default | A text area | A code field with highlighting |
| Two-factor methods | App, email and recovery codes | App and recovery codes (email codes are Filament's only) |
| Custom post types | Resource configurations, no classes | A generated resource class per type |