Troubleshooting

Run php artisan ui-kit:doctor first. It catches most of the list below and prints the fix beside each failure. The rest are here, with the message you will see.

Vite manifest not found

/login returns 500 and the exception names public/build/manifest.json. The assets were never built. Run npm run dev for local work or npm run build for a deploy.

Components render as unstyled HTML

Buttons, inputs and tables show as plain browser controls with no colours or spacing, the admin page titles lose their size, and nothing logs an error. Tailwind only keeps classes it finds in the files it scans, and it does not scan vendor/. The design system's components and the kit's own package views live there, so resources/css/ui-kit.css names them in two @source lines. A ui-kit.css from 0.3 or earlier has neither, and one with a line deleted loses those classes. The doctor reports it as ui-kit.css imports the design system or ui-kit.css scans the kit's own views. Re-publish the file and rebuild:

php artisan vendor:publish --tag=ui-kit-assets --force
npm run build

The file should end with these four lines (Core explains them):

@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';

A stray > before every button label

Buttons inside Livewire pages read "> Sign in" or "> Save", and a screen reader announces the >. This is shipbytes/blade-ui older than 1.2: a comment in its button component named a tag, and Livewire placed one of its <!--[if BLOCK]> markers inside the real button tag because of it. Kit 0.4 requires ^1.2.2, so the cause is an app that pins the design system lower or never updated it:

composer require shipbytes/blade-ui:^1.2.2 -W
php artisan view:clear

The app renders in a system font

Every page shows Arial, Helvetica or the OS's sans-serif instead of Inter, while colours and spacing look right. The Laravel 12 skeleton's resources/css/app.css ends with an @theme block that sets --font-sans to Instrument Sans. It comes after the kit's import, so it beats the design system's Inter, and nothing loads Instrument Sans, so the browser falls back. The installer deletes it from 0.4 on; an app installed earlier still has it. The doctor reports app.css does not override the design system font. Re-run the installer, which deletes only that declaration, or delete the block yourself, then rebuild:

php artisan ui-kit:install
npm run build

A layout of your own that does not load Inter shows the same symptom on its pages only. Add the font <link> from the quickstart to its <head>.

A profile photo does not save

On /profile, choosing a photo and pressing Save photo returns to the initials with no error, and Remove does nothing either. The profile view from before 0.4 set avatar_path with update(), which a stock User model ignores, because its $fillable is only name, email and password. The 0.4 profile module uses forceFill(). Re-publish the module (back up the profile views first if you edited them) and check the storage link:

php artisan ui-kit:install-module profile --force
php artisan storage:link

Dark mode is lost after a page change

The app is dark, and after signing in (on the two-factor challenge) or after following any wire:navigate link the page turns light, until a full reload. Livewire copies the next page's <html> attributes over the current one and does not re-run the head snippet, so the dark class disappears. The resources/js/ui-kit.js from 0.4 re-applies the theme on every swap, before paint; an older copy does not. Re-publish it and rebuild:

php artisan vendor:publish --tag=ui-kit-assets --force
npm run build

A page change on an admin list reloads the whole page

Clicking a page number on an admin list does a full page load: the URL gains ?page=2, the scroll position resets, and any search or filter the component does not keep in the URL is lost. The component calls paginate() without a Livewire pagination trait, so the links are Laravel's plain <a href> pager. Add the kit's trait, which includes Livewire's WithPagination and draws the design system's pager, so a page change becomes a Livewire update:

use Shipbytes\UiKit\Livewire\Concerns\WithDesignSystemPagination;

class ReportList extends Component
{
    use WithDesignSystemPagination;
}

A component on Livewire's plain WithPagination pages without a reload but draws Livewire's own pager, in grey palette colours that match nothing else on the screen. The doctor's admin lists paginate with the design system row names each published admin component in that state (it cannot see a component with no trait at all). Swap the trait as above, or re-publish the kit's admin components with php artisan ui-kit:install --force and your --modules= list, as in Upgrading. A component that defines its own paginationView() keeps its own pager by design, and the doctor leaves it alone.

A nav item shows a question-mark icon

An entry in the admin sidebar, the phone bar or the More sheet draws a question mark in a circle instead of its icon, and the log has blade-ui: icon "grid" not found, rendered "question-mark-circle" (once per request per name). The entry's icon in config/admin.php is not a Heroicons v2 name. The 0.3 names grid, note, chart and history do not exist in Heroicons v2, and re-running the installer with --force rewrites the kit's own entries but not entries you added. The doctor's nav icons are Heroicons row lists each bad one as label => icon:

php artisan ui-kit:doctor

Rename them in config/admin.php (the table in Upgrading has the mapping, and any outline icon on heroicons.com works), then clear the cached config if you cache it:

php artisan config:clear

On 0.4.0 to 0.5.1 the same name made every admin page fail with Unable to locate a class or view for component [heroicon-o-grid]. Upgrading to 0.5.2 and republishing the sidebar turns that into the question mark; renaming the icon fixes it on any version.

Jetstream detected (laravel/jetstream is installed).

The installer stops before writing anything. Jetstream and the kit both register /login, /register and friends, and Jetstream's teams and API tokens are outside what the kit understands. Start from a fresh app. --force overrides the abort and is not recommended.

Auth scaffolding detected and running non-interactively.

The full message ends Re-run with --force to override, or remove the conflicting setup first. Aborting. A CI job ran ui-kit:install --no-interaction on an app that has Breeze or leftover auth files. Remove them with the commands under Why this kit, or pass --force if overwriting is what you want.

Unknown modules: foo. Available: all, admin-middleware, …

A slug in --modules= or in ui-kit:install-module is misspelled. Nothing was installed; the batch is validated before the first module runs. ui-kit:list-modules prints the valid slugs.

403 on /admin

Every admin route runs the middleware in config/admin.php. The fallback requires $user->is_admin to be truthy; with the admin-middleware module installed the user needs the Spatie admin role. Either way:

php artisan ui-kit:make-admin [email protected]

route:cache fails with a duplicate route name

The doctor's no duplicate route names check lists the names. The usual cause is a route file copied without its ui-kit:managed header and then also loaded by hand, so every route registers twice. Keep the header and let the provider load the file, or delete the header and load it yourself, not both.

Password reset and verification emails never arrive

Check the MAIL_* keys in .env. With MAIL_MAILER=log the messages are in storage/logs/laravel.log. The doctor reports mail from address configured as a skip until MAIL_FROM_ADDRESS is set to something other than the default.

Ticket and contact mail never arrives

The ticket, reply or message is always saved first, and a failed send never fails the form, so a missing mail is quiet by design. Check, in order:

  1. The queue. The mailables implement ShouldQueue. With the Laravel 12 skeleton's QUEUE_CONNECTION=database, nothing is sent until a worker runs: php artisan queue:work (or Supervisor, Horizon or your host's equivalent in production). QUEUE_CONNECTION=sync sends during the request instead. Mail that failed inside a worker is in failed_jobs: php artisan queue:failed.

  2. MAIL_FROM_ADDRESS. The doctor's mail from address configured row is a skip until it is set to something other than [email protected], and many providers refuse mail from an address you do not own.

  3. The log. With the sync queue, a send that throws is caught and logged at error level:

    local.ERROR: ui-kit: could not send App\Mail\NewTicketMail {"error":"Connection could not be established with host …"}
    

    The admin screens say so too: "Reply saved, but the email failed: …". With MAIL_MAILER=log, the mail itself is in storage/logs/laravel.log.

  4. The recipients. Admin mail goes to UiKit::admins(): users with the admin role when the admin-middleware module is installed, else users with is_admin. No admins yet (or the role never seeded) means nobody to send to. UI_KIT_ADMIN_ADDRESSES sends it to fixed addresses instead.

  5. The views. The doctor's support-tickets mail views published and contacts mail views published rows fail when a mailable or its view is missing; a queued mail without its view fails in the worker.

A changelog entry dated today is missing from /changelog

On 0.5.0 with SQLite (Laravel 12's default database), an entry whose publish date is today stays hidden until tomorrow; earlier dates show. ChangelogEntry::published() compared the stored 2026-10-23 00:00:00 with 2026-10-23 as strings. 0.5.1 fixes the scope. Update, then either republish the model with php artisan ui-kit:install-module changelog (it overwrites the module's published files, so commit first), or change one line in app/Models/ChangelogEntry.php:

->whereDate('published_at', '<=', now()->toDateString());   // was ->where(...)

My /contact route conflicts

0.5 adds /contact, /changelog and /support (with /support/create and /support/{ulid}). If your app already has a route at one of those paths, two routes now claim it and only one answers, with no error. Pick one:

  • Keep the kit's page at another path. In routes/ui-kit-user.php, change the path and keep the name: Route::get('contact-us', \App\Livewire\ContactForm::class)->name('contact');. The shell's links and the mail use the name, so they follow.
  • Keep yours, drop the kit's. Delete the line from routes/ui-kit-user.php. The admin side of the module is unaffected. Re-running ui-kit:install-module adds the line again, so do this after upgrading.

A clash of route names (yours is also called contact, say) is different: php artisan ui-kit:doctor fails no duplicate route names and php artisan route:cache refuses to run. Rename one of them.

The installer couldn't patch your User model

The installer applies App\Models\Concerns\UiKitUser to app/Models/User.php itself and reverts the edit if php -l rejects the result, which happens with a custom model location or an unusual class layout. Add it by hand:

class User extends Authenticatable
{
    use \App\Models\Concerns\UiKitUser;
}

The doctor's UiKitUser trait applied check confirms it.

POST /register returns 500: Target [Laravel\Fortify\Contracts\CreatesNewUsers] is not instantiable

The same happens on POST /forgot-password, POST /reset-password, PUT /user/profile-information and PUT /user/password, with ResetsUserPasswords, UpdatesUserProfileInformation or UpdatesUserPasswords in the message. These are Fortify's own endpoints, not the kit's pages: 'views' => false turns off Fortify's GET pages but not its form endpoints, and each one calls an action class that a kit app never binds. Anything that posts there, a bot or an old form, gets a 500, and an app that did bind CreatesNewUsers had a second sign-up route that skipped the kit's disposable-email check and its limiter.

Since 0.4.1 the installer comments those features out in config/fortify.php, and the endpoints answer 404 or 405. The kit's Livewire pages do all five jobs. On an older install, re-run php artisan ui-kit:install (update mode applies the patch without --force), or comment the lines out yourself:

'features' => [
    // Features::registration(),
    // Features::resetPasswords(),
    Features::emailVerification(), // leave as it is
    // Features::updateProfileInformation(),
    // Features::updatePasswords(),
    Features::twoFactorAuthentication([...]),
    // Features::passkeys([...]),
],

The doctor reports it as fortify features limited to two-factor. Then php artisan config:clear if the config is cached.

Route [two-factor.login] not defined after signing in

A user with two-factor enabled signed in through Fortify's own POST /login (a form or a client posting to /login directly rather than the kit's Livewire page). Fortify redirects such a user to the route two-factor.login; the kit's page is named two-factor.challenge. Since 0.4.1 routes/auth.php adds two-factor.login as a redirect to the kit's page, which picks up the login Fortify staged, so the sign-in completes. On an older routes/auth.php, add the line beside the challenge route:

Route::redirect('two-factor-login', '/two-factor-challenge')->name('two-factor.login');

The doctor reports it as two-factor.login route registered.

Everyone is locked out of /register, or every login hits "Too many attempts"

The app runs behind a load balancer, CDN or reverse proxy that it does not trust, so every request arrives from the proxy's address. The kit's limiters key on the visitor's IP: ten registrations an hour per IP, five failed logins per email and IP. With one shared IP, ten sign-ups from anyone lock out everyone for the hour. Tell Laravel which proxies to trust in bootstrap/app.php:

->withMiddleware(function (Middleware $middleware) {
    $middleware->trustProxies(at: '10.0.0.0/8'); // your proxy's addresses, or '*' if only the proxy can reach the app
})

The doctor's trusted proxies configured row fails in production until the call exists, and is a skip elsewhere. An app with no proxy at all can write trustProxies(at: []) to say so.

After signing in, everyone lands on the same unrelated page

Every kit page that signs someone in (login, register, the two-factor challenge, confirm password, email verification) finishes with redirectIntended, which goes to the URL stored in the session as url.intended and only falls back to the home page when there is none. Laravel stores that URL when a guest hits a page behind auth. A public route of your own that calls redirect()->guest(...), or session()->put('url.intended', …), for a visitor who is not signing in leaves a stale intended URL behind. The next sign-in in that session goes there instead of where the user meant to go. Use a plain redirect() on public routes, and keep redirect()->guest() for pages that really need a signed-in user.

/register returns 500: RegisterViewResponse is not instantiable

Fortify is registering its own view routes on top of the kit's. The installer sets 'views' => false in config/fortify.php; if the file was re-published or edited, set it again. The doctor's fortify views disabled check watches for this.

Class "Livewire\Volt\Volt" not found, or a leftover VoltServiceProvider

Since 0.3 the kit runs on Livewire 4 and no longer brings Volt. To keep an app upgraded from 0.2 booting, the kit aliases the Volt names its own files used: Volt::route(), Volt::mount() and Livewire\Volt\Component. Anything else of Volt's fails with this message or with Call to undefined method: Volt::test() in your own tests, functional-API Volt components, or Volt removed by hand while the kit is still on 0.2. Finish the move with the steps under Upgrading. php artisan ui-kit:doctor reports what is left as routes/auth.php uses Route::livewire and no Volt service provider.

Route [impersonate] not defined

The impersonation partials link to routes that lab404/laravel-impersonate provides as a macro. The installer adds Route::impersonate(); to routes/ui-kit-user.php; if the line is missing, because the module was installed with an older kit or the file was edited, re-run php artisan ui-kit:install-module impersonation or add the line between the ui-kit:user-routes markers yourself. php artisan ui-kit:doctor reports this as impersonation routes registered. The impersonation module page has the details.

The welcome page's Dashboard button 404s

That button is stock Laravel and links to /dashboard, which nothing registers. The kit's panel is at /admin. Edit resources/views/welcome.blade.php to point there, or replace the page.

Since 0.4.1 the kit's DefaultBadgeResolver counts open tickets and unread contact messages on its own. Before that the default returned nothing, so on 0.4.0 or older, update. On 0.4.1, run the doctor: sidebar badges resolve names the badge that has no count. Either your own SidebarBadgeResolver binding replaces the default and lacks that key, or the kit's resolver could not count, usually because the module's table was never migrated (php artisan migrate). A count that fails is left out rather than failing every admin page. Customising shows how to extend the default.

The profile page sends me to "Confirm password" when I touch two-factor

That is Fortify's confirmPassword option, which the installed config/fortify.php turns on. Since 0.4.1 the profile's two-factor card honours it: enabling, disabling, showing and regenerating recovery codes need a password confirmed within auth.password_timeout (three hours by default), and the confirm page brings the user back to /profile. To turn it off, set 'confirmPassword' => false in the twoFactorAuthentication([...]) options.

Login never asks for a two-factor code

The challenge only runs for users with a confirmed secret, and only the profile module gives users a way to enable one. Without it, two-factor is on in Fortify and unused, which is fine.

Something else

Open an issue on GitHub with the output of php artisan ui-kit:doctor and the exact error text. Most reports turn into a new doctor check.

Was this page helpful?