Core

Everything on this page is installed by ui-kit:install before it asks about modules.

Auth pages

Seven pages as Livewire single-file components over Fortify's actions, published to resources/views/livewire/pages/auth/ and routed from routes/auth.php:

RouteNamePage
GET /loginloginEmail, password, remember me
GET /registerregisterName, email, password; disposable email domains are rejected when features.disposable_email_block is on
GET /forgot-passwordpassword.requestSends the reset link
GET /reset-password/{token}password.reset
GET /two-factor-challengetwo-factor.challengeTOTP code, with a switch to a recovery code
GET /verify-emailverification.noticeWith a resend action
GET /verify-email/{id}/{hash}verification.verifySigned link handler
GET /confirm-passwordpassword.confirm

The copy on each page comes from config/ui-kit.php under copy, so a heading can change without editing a view. Every page renders in light and dark.

The registration page
/register in the guest layout.
The forgot-password page
/forgot-password.

Two-factor authentication

Fortify's twoFactorAuthentication feature is on by default and the installer publishes the migration that adds the two_factor_* columns to users. Login validates credentials first; when the user has a confirmed two-factor secret it stages a challenge and redirects to /two-factor-challenge, where a TOTP code or a recovery code completes the sign-in. Both steps are rate limited by the login and two-factor limiters the service provider registers.

Fortify's own POST /login stays registered and works too. It sends a two-factor user to the route two-factor.login, which routes/auth.php defines as a redirect to the kit's page (since 0.4.1), and the page picks up the login Fortify staged in the session. The installer turns off the Fortify features whose endpoints the kit's pages replace (registration, password reset, profile and password updates, passkeys), so POST /register, POST /forgot-password, POST /reset-password, PUT /user/profile-information and PUT /user/password answer 404 or 405. Secrets are read with Fortify::currentEncrypter(), so Fortify::encryptUsing() works, and the installer hides two_factor_secret and two_factor_recovery_codes on the User model so they never reach a user's JSON.

The two-factor challenge page asking for a six-digit code
The challenge after a correct password. Recovery codes are one link away.

Enabling two-factor, confirming it with a code, showing recovery codes and disabling it again are the profile module. Without that module a user has no way to turn it on, so login never challenges, and nothing breaks.

Admin shell

resources/views/layouts/admin-sidebar.blade.php is the layout every admin Livewire component uses. It has a collapsible sidebar whose state persists in localStorage, a bottom navigation bar on phones whose "More" button opens the design system's bottom sheet, a theme toggle, and a footer with the current user, a profile link and a logout form. Navigation is read from config/admin.php, with Heroicons v2 names as icons; modules append their entries between the ui-kit:nav markers at install time and never touch yours. Every admin screen opens with the package's <x-ui-kit::page-header>, which your own screens can use too (Customising).

The users list inside the admin shell
/admin/users: a search field over a table with a verified badge and a View button per row.
The admin dashboard on a phone with the bottom navigation bar
Below the md breakpoint the sidebar becomes a bottom bar.

Routes live in routes/admin.php, prefixed and named from the config:

// config/admin.php
'route_prefix' => 'admin',
'route_name_prefix' => 'admin.',
'middleware' => ['auth', 'verified', \Shipbytes\UiKit\Http\Middleware\EnsureIsAdminFallback::class],

EnsureIsAdminFallback lets a request through when $user->is_admin is truthy. The admin-middleware module swaps it for a Spatie role check.

Dashboard and users

RouteComponentWhat it shows
GET /adminApp\Livewire\Admin\DashboardThree stat tiles: total users, verified, new this week. A stub to replace.
GET /admin/usersApp\Livewire\Admin\Users\UserListSearchable table, paged with the design system's Livewire pagination
GET /admin/users/{user}App\Livewire\Admin\Users\UserDetailOne user: name, email, joined and verified dates
A single user's detail page
/admin/users/2.

User shell

resources/views/layouts/user-shell.blade.php is the layout for the pages outside the admin panel: /profile, and the module pages /support, /contact and /changelog. It carries the same head and banner components as the admin shell, so dark mode and the impersonation ribbon work there too.

Its header changes with who is looking. Signed in: an Admin button for admins, the theme toggle, the avatar (linking to /profile when that module is installed) and Log out. Signed out: the theme toggle, Sign in, and Register while the register route exists. Beside the brand, a Support link (signed-in users only) and a Changelog link appear when their routes exist, each marked aria-current="page" on its own pages; on a phone they wrap onto a second row under the brand.

The routes live in routes/ui-kit-user.php, in two groups: a web group open to guests (/contact, /changelog) between the ui-kit:public-routes markers, then a web + auth group (/profile, /support) between the ui-kit:user-routes markers. Modules add their lines there; rename a path freely and keep its route name.

The design system

Every view the kit publishes is built from the Shipbytes design system: the ds:: Blade components of shipbytes/blade-ui (buttons, inputs, tables, badges, modals, stat tiles, icons) and its semantic tokens, such as bg-surface, text-fg-muted and border-border. The tokens carry a light and a dark value each, so no view has a palette class or a dark: variant. The accent is the design system's blue and the font is Inter, which the kit's layouts load from fonts.bunny.net. Composer installs shipbytes/blade-ui with the kit.

The design system asks an app for three lines of CSS: import its tokens, import its theme, and @source its views so Tailwind keeps the classes its components use. The kit puts them in the published resources/css/ui-kit.css, with a second @source for the kit's own package views (<x-ui-kit::page-header> and the head and banner components), and the installer imports that file from app.css right after tailwindcss:

/* resources/css/ui-kit.css */
@import '../../vendor/shipbytes/blade-ui/dist/tokens.css';
@import '../../vendor/shipbytes/blade-ui/dist/theme.css';
@source '../../vendor/shipbytes/blade-ui/resources/views';
@source '../../vendor/shipbytes/laravel-ui-kit/resources/views';

The paths are relative to ui-kit.css itself. Keep both @source lines: Tailwind does not scan vendor/, so without them the components render as unstyled HTML and nothing reports an error. The doctor checks both.

Overriding a token. Redefine its --ds-* variable in app.css, after the ui-kit.css import, once for light and once for dark:

@import 'tailwindcss';
@import './ui-kit.css';

:root {
  --ds-accent: #0d9488;
  --ds-accent-hover: #0f766e;
}
.dark {
  --ds-accent: #2dd4bf;
  --ds-accent-hover: #5eead4;
}

The design system's token reference lists every variable.

Dark mode is a class on <html>: exactly one of light or dark is always set. <x-ui-kit::head /> sets it before the first paint, from the user's stored choice or, when there is none, the OS preference. The theme store re-applies it after every wire:navigate page change, and <x-theme-toggle /> stores the user's choice in localStorage as ui-kit.theme. With neither class on <html> the design system's tokens follow the OS, which is why the kit never leaves both off.

Alpine stores and the two components

resources/js/ui-kit.js registers two Alpine stores on alpine:init. Livewire loads Alpine, so there is nothing else to include.

StoreHoldsPersisted as
$store.sidebarcollapsed, with toggle()ui-kit.sidebar.collapsed
$store.themevalue of light or dark (the OS preference until the user picks one), with toggle() and apply()ui-kit.theme

Two Blade components from the package tie the stores to any layout, including your own public one:

<head>
    <x-ui-kit::head />      {{-- sets the light or dark class before first paint, so no flash --}}
</head>
<body>
    <x-ui-kit::banners />   {{-- the impersonation ribbon, when that module is installed --}}

The kit's three layouts already include both. <x-theme-toggle /> is the published toggle button and works anywhere the store is loaded.

Artisan commands

CommandDoes
ui-kit:installCore install, then the module picker. --modules=a,b or --modules=all skips the prompt; --force overwrites existing files. Safe to re-run: an existing install is detected and updated in place.
ui-kit:install-module <slug>...Installs one or more modules into an existing install. Slugs can be space- or comma-separated; the batch is validated first, and one unknown slug aborts the whole run. ui-kit:install-modules is an alias.
ui-kit:list-modulesEvery module with its installed state.
ui-kit:make-admin {email?}Grants admin: the Spatie admin role when that module is installed, the is_admin flag when the column exists. No email promotes the first user.
ui-kit:doctorThe health check below.

What the doctor checks

One row per check, in the order the command prints them, with the hint it prints beside a failure. A skip is not a failure: the check did not apply, and the hint says why.

CheckFails whenHint
config/ui-kit.php publishedThe file is missingphp artisan vendor:publish --tag=ui-kit-config
config/admin.php publishedThe file is missingphp artisan vendor:publish --tag=ui-kit-config
routes/auth.php publishedThe file is missingphp artisan vendor:publish --tag=ui-kit-routes
routes/admin.php publishedThe file is missingphp artisan vendor:publish --tag=ui-kit-routes
routes/ui-kit-user.php publishedThe file is missingphp artisan vendor:publish --tag=ui-kit-routes
resources/css/ui-kit.css publishedThe file is missingphp artisan vendor:publish --tag=ui-kit-assets
resources/js/ui-kit.js publishedThe file is missingphp artisan vendor:publish --tag=ui-kit-assets
routes/auth.php auto-loaded (ui-kit:managed)A skip, shown as routes/auth.php auto-loaded, when the file lacks the headerno ui-kit:managed header — load it yourself or re-publish
routes/admin.php auto-loaded (ui-kit:managed)A skip, shown as routes/admin.php auto-loaded, when the file lacks the headerno ui-kit:managed header — load it yourself or re-publish
routes/ui-kit-user.php auto-loaded (ui-kit:managed)A skip, shown as routes/ui-kit-user.php auto-loaded, when the file lacks the headerno ui-kit:managed header — load it yourself or re-publish
routes/ui-kit-user.php has the public-routes blockThe file has no ui-kit:public-routes markers (it predates 0.5) and an installed module adds a public page (contacts, changelog). A skip when no installed module needs the block, or when the file is not publishedthe file predates 0.5: re-run php artisan ui-kit:install --force --modules=<the installed ones> (it overwrites every published file, so commit first), or add Route::middleware(['web'])->group(function () { /* ui-kit:public-routes-start */ /* ui-kit:public-routes-end */ }); above the auth group and run php artisan ui-kit:install-module contacts changelog
Livewire 4 installedlivewire/livewire is not a 4.x releasecomposer require livewire/livewire:^4.0
routes/auth.php uses Route::livewireroutes/auth.php still calls Volt::, left over from 0.2in routes/auth.php replace Volt::route( with Route::livewire( and delete the use Livewire\Volt\Volt; line. The kit's Volt shim keeps the old file working until then.
views free of Volt importsA view under resources/views/livewire/ imports Volt's component classreplace use Livewire\Volt\Component; with use Livewire\Component; in (up to five files, by name)
no Volt service providerbootstrap/providers.php lists VoltServiceProvider, or app/Providers/VoltServiceProvider.php existsremove VoltServiceProvider from bootstrap/providers.php, delete app/Providers/VoltServiceProvider.php, then composer remove livewire/volt
fortify views disabledviews is not false in config/fortify.php. With the file missing the row is config/fortify.php published, hint run php artisan ui-kit:install (or publish fortify-config) — without views=false, /register 500sset 'views' => false in config/fortify.php so Fortify doesn't collide with the kit's auth pages
two-factor.login route registeredFortify's two-factor feature is on and no route is named two-factor.login, so Fortify's own POST /login 500s for a two-factor user. A skip when two-factor is offadd Route::redirect('two-factor-login', '/two-factor-challenge')->name('two-factor.login'); beside the two-factor-challenge route in routes/auth.php, or re-run php artisan ui-kit:install --force --modules=<the installed ones> (Fortify's POST /login sends two-factor users there)
fortify features limited to two-factorregistration, resetPasswords, updateProfileInformation, updatePasswords or passkeys is on in the live Fortify configcomment out Features::registration(), … (the ones still on) in config/fortify.php: their POST/PUT endpoints call actions no kit app binds and 500 (the kit's own pages do those jobs), or re-run php artisan ui-kit:install
ui-kit.css imported from app.cssresources/css/app.css does not import ui-kit.cssadd @import './ui-kit.css'; after the tailwindcss import
ui-kit.js imported from app.jsresources/js/app.js does not import ./ui-kitadd import './ui-kit'; to resources/js/app.js
design system installedshipbytes/blade-ui is not in vendor/composer require shipbytes/blade-ui
ui-kit.css imports the design systemui-kit.css lacks the design system's theme.css import or an @source linephp artisan vendor:publish --tag=ui-kit-assets --force (the 0.3 file imported ./ui-kit-theme.css instead)
ui-kit.css scans the kit's own viewsui-kit.css lacks the @source line for the kit's package viewsphp artisan vendor:publish --tag=ui-kit-assets --force (ui-kit.css from before 0.4 lacks the @source line for vendor/shipbytes/laravel-ui-kit/resources/views)
no leftover ui-kit-theme.cssThe 0.3 file resources/css/ui-kit-theme.css still existsdelete resources/css/ui-kit-theme.css: tokens now come from the design system, and any overrides belong in app.css after the ui-kit.css import (:root { --ds-accent: … })
app.css does not override the design system fontThe skeleton's Instrument Sans --font-sans follows the ui-kit.css import. A skip, hint you override the font; make sure it is loaded, when another font is set theredelete the @theme { --font-sans: 'Instrument Sans', … } block from resources/css/app.css (nothing loads that font), or re-run php artisan ui-kit:install
nav icons are HeroiconsA nav icon in config/admin.php is neither a Heroicons v2 outline name nor a design-system aliasnot found: Dashboard => grid, …. 0.4 switched nav icons to Heroicons v2 names (heroicons.com); e.g. grid → squares-2x2, note → document-text, mail → envelope, history → clock. Meanwhile the sidebar shows a question-mark icon for each of them
admin lists paginate with the design systemA component under app/Livewire/Admin uses plain WithPagination and defines no paginationView()(the components, by name): replace use WithPagination; with use \Shipbytes\UiKit\Livewire\Concerns\WithDesignSystemPagination;, or republish with php artisan ui-kit:install --force
sidebar badges resolveA nav entry's badge key is missing from the bound resolver's counts. When the kit's own resolver could not count (a table not yet migrated) the hint says so instead: could not count open_tickets: …. Run php artisan migrate, or remove the module's nav entry from config/admin.php. A skip when no nav entry has a badge(the resolver's class) returns no count for Support => open_tickets: return those keys from your SidebarBadgeResolver, or remove your binding to use the kit's DefaultBadgeResolver (it counts open_tickets and unread_contacts when their modules are installed)
UiKitUser trait appliedThe trait was generated but app/Models/User.php does not use itadd use App\Models\Concerns\UiKitUser; inside app/Models/User.php
impersonation routes registeredThe impersonation module is installed and the impersonate or impersonate.leave route is missingadd Route::impersonate(); between the ui-kit:user-routes markers in routes/ui-kit-user.php, or re-run php artisan ui-kit:install-module impersonation
impersonation button wiredThe impersonation module is installed and its button partial is missing, or the user detail view does not include itthe user detail page never shows it: add @includeIf('partials.impersonation-button', ['user' => $user]) to resources/views/livewire/admin/users/user-detail.blade.php, or republish with php artisan ui-kit:install --force
storage linked (profile avatars)The profile module is installed and public/storage is missingrun php artisan storage:link
two-factor columns hidden on the User modelThe profile module is installed and the user model's hidden list (property, #[Hidden] attribute or $visible) lets two_factor_secret or two_factor_recovery_codes throughadd 'two_factor_secret' and 'two_factor_recovery_codes' to $hidden in app/Models/User.php: toArray() and JSON of a user carry them
two-factor columns migratedThe profile module is installed and users.two_factor_secret is absentrun php artisan vendor:publish --tag=fortify-migrations && php artisan migrate
<module> routes registeredOne row per installed module that declares routes: a route the installer adds (admin, user or public) is not registered under its namemissing: …. Re-run php artisan ui-kit:install-module <module>: it adds the module's lines between the ui-kit markers in routes/admin.php and routes/ui-kit-user.php (a renamed path is fine; keep the route name)
<module> mail views publishedFor support-tickets and contacts: a mailable class in app/Mail or its markdown view in resources/views/mail is missingmissing: …. Re-run php artisan ui-kit:install-module <module> (it copies the module's app/Mail and resources/views/mail files, overwriting its other published files too, so commit first)
support ticket policy publishedsupport-tickets is installed and App\Policies\SupportTicketPolicy does not exist, so every ticket page answers 403app/Policies/SupportTicketPolicy.php is missing, so every ticket page answers 403: re-run php artisan ui-kit:install-module support-tickets
no duplicate route namesTwo routes share a name, which breaks route:cacheroute:cache will fail — duplicated: … (up to five names)
trusted proxies configuredIn production, bootstrap/app.php has no uncommented trustProxies( call. A skip in any other environmentif a proxy or CDN sits in front of the app, call $middleware->trustProxies(at: [...]) in bootstrap/app.php; otherwise every visitor shares the proxy's IP and the login and register limiters lock everyone out together (no proxy at all? trustProxies(at: []) says so and passes this check)
mail from address configuredA skip, not a failure, while MAIL_FROM_ADDRESS is unset or [email protected]set MAIL_FROM_ADDRESS in .env — password reset, verification and the support and contact mail need it

UiKitUser trait applied is a skip when the installer generated no trait, the two impersonation rows appear only with that module, the storage and two-factor-column rows only with the profile module, and the module rows only for the modules installed (in the order config/ui-kit.php lists them). A fresh install with every module prints all 45 rows and ends All checks passed., with two skips until the app is configured for real: trusted proxies configured outside production and mail from address configured until MAIL_FROM_ADDRESS is set. With any failure the table ends Some checks failed — see the hints above.

Was this page helpful?