Upgrading

Two steps: update the package, then re-run the installer, which recognises an existing install and only adds what is new.

composer update shipbytes/laravel-ui-kit
php artisan ui-kit:install

Read the changelog first. Before 1.0 a minor version can contain breaking changes, and the entry says what to do.

0.4 to 0.5

0.5 adds the user-facing halves of three modules: /support for signed-in users, and /contact and /changelog for everyone, with mail between users and admins. It is a minor release because those routes are new in your app, and because routes/ui-kit-user.php gains a second group, which the installer only writes with --force. The changelog has the full list.

  1. Update:

    composer require shipbytes/laravel-ui-kit:^0.5
    
  2. Check for a path you already use. If your app has its own /contact, /changelog or /support, read My /contact route conflicts first.

  3. Commit, then re-run the installer with every installed module:

    php artisan ui-kit:install --force --modules=profile,support-tickets,contacts,changelog,…
    

    That republishes routes/ui-kit-user.php with the public-routes block and patches every module's lines back in, and publishes the new pages, mailables, mail views and the ticket policy. As before, --force re-publishes config/admin.php and config/ui-kit.php, so read git diff and restore your own nav entries and values.

    Without --force, the installer keeps your 0.4 routes/ui-kit-user.php, warns that it skipped /contact and /changelog, and the doctor fails routes/ui-kit-user.php has the public-routes block. Add the group above the auth group yourself:

    Route::middleware(['web'])->group(function () {
        /* ui-kit:public-routes-start */
        /* ui-kit:public-routes-end */
    });
    

    then run php artisan ui-kit:install-module support-tickets contacts changelog (the ones you have). That re-copies those modules' files, your edits to them included, so commit first.

  4. Mail. Set MAIL_FROM_ADDRESS in .env, and unless QUEUE_CONNECTION=sync, keep php artisan queue:work running, or nothing is sent. To send admin mail to a shared mailbox rather than to every admin, set UI_KIT_ADMIN_ADDRESSES (Customising). If you had wired mail of your own into the ticket or inbox screens after the 0.4 notes, remove it, or each mail goes out twice.

  5. Build and check:

    npm run build
    php artisan ui-kit:doctor
    

    New rows: routes/ui-kit-user.php has the public-routes block, one <module> routes registered per installed module, support-tickets mail views published, contacts mail views published and support ticket policy published.

0.4.0 to 0.4.1

0.4.1 is a hardening release with nothing breaking. Two of its fixes are patches the installer makes to files your app owns: it turns off the Fortify features whose endpoints answered 500 (config/fortify.php), and it hides the two-factor columns on the User model (app/Models/User.php). The rest are changed stubs and new doctor rows. The changelog has the full list.

  1. Update. -W lets Composer move shipbytes/blade-ui to 1.2.3, which the phone bar's badges need:

    composer update shipbytes/laravel-ui-kit -W
    
  2. Commit, then re-run the installer. Either path applies both patches, because they edit the two files in place:

    • With --force, naming every module php artisan ui-kit:list-modules shows as installed, to take the changed stubs as well:

      php artisan ui-kit:install --force --modules=profile,support-tickets,…
      

      As in 0.4.0, --force re-publishes config/admin.php and config/ui-kit.php, so read git diff and restore your own nav entries and values, and merge your edits back into any view you had changed.

    • Without --force, which keeps every file you own:

      php artisan ui-kit:install --modules=profile,support-tickets,…
      

      Then let the doctor list what your older published files lack: two-factor.login route registered gives the line for routes/auth.php, and impersonation button wired gives the include for the user detail view.

  3. Build and check:

    npm run build
    php artisan ui-kit:doctor
    

    Every row passes or skips with a reason. trusted proxies configured is new: a skip outside production, and a failure in production until bootstrap/app.php calls trustProxies(. Troubleshooting explains why it matters.

The sidebar badges for open tickets and unread messages now count themselves. If you bound your own SidebarBadgeResolver only for those two, you can remove the binding.

0.3 to 0.4

0.4 moves the kit onto the Shipbytes design system. Routes, route names, Livewire properties and methods, validation messages and the copy strings in config/ui-kit.php stay the same; every file the kit publishes changes. The kit's own ui-kit-theme.css (the brand-* colours, Poppins and Montserrat) gives way to the design system's tokens, its blue accent and Inter, and nav icons become Heroicons v2 names. The changelog has the full list. These steps were run, in this order, on a 0.3 app with every module installed and some files edited, until the doctor passed and every screen rendered the new look.

  1. Start from a clean working tree: git status shows nothing to commit. Step 3 overwrites files your app owns, and step 4 uses git diff to get your changes back.

  2. Require the new minor. A ^0.3 constraint never picks up 0.4, and -W lets Composer add shipbytes/blade-ui:

    composer require shipbytes/laravel-ui-kit:^0.4 -W
    

    The app keeps booting from here on, but php artisan ui-kit:doctor now fails up to six rows: ui-kit.css imports the design system, ui-kit.css scans the kit's own views, no leftover ui-kit-theme.css, app.css does not override the design system font, nav icons are Heroicons and admin lists paginate with the design system. The next steps clear them.

  3. Re-run the installer in update mode with --force, naming every module that ui-kit:list-modules shows as installed. A module you leave out drops out of the installed_modules list. With all seven, --modules=all does the same:

    php artisan ui-kit:list-modules
    php artisan ui-kit:install --force --modules=admin-middleware,support-tickets,changelog,contacts,profile,impersonation,activity-log
    

    It re-publishes config/ui-kit.php, config/admin.php, the route files, every view and layout, the Livewire classes, the module models and factories, resources/css/ui-kit.css and resources/js/ui-kit.js. Then it re-applies each module's routes, nav entries and middleware swap between the markers and records the modules again. That alone replaces the kit's own nav icon names, puts the pagination trait in the admin lists, and deletes the skeleton's Instrument Sans block from app.css. Migrations that already exist are not published again, and migrate only runs what is new.

  4. Read the diff and bring back what was yours:

    git diff
    

    Look for entries you added to config/admin.php outside the ui-kit:nav markers, values you changed in config/ui-kit.php (brand, copy, features), and edits to views, Livewire classes or models. Re-apply a view edit to the new markup rather than restoring the old file, because the 0.3 markup uses classes that no longer exist. A changed dashboard heading, for example, now goes in the page header's title:

    -    <x-ui-kit::page-header title="Dashboard" :subtitle="'Welcome back, '.(auth()->user()->name ?? '').'.'" />
    +    <x-ui-kit::page-header title="Acme overview" :subtitle="'Welcome back, '.(auth()->user()->name ?? '').'.'" />
    
  5. Delete the 0.3 theme file and the old icon partial. Nothing uses either now:

    rm resources/css/ui-kit-theme.css resources/views/layouts/partials/nav-icons.blade.php
    
  6. If you had changed tokens in ui-kit-theme.css, move them to resources/css/app.css as design-system tokens, after the ui-kit.css import, with a light value on :root and a dark one on .dark. A teal brand that was --color-brand-600: #0d9488; becomes:

     @import 'tailwindcss';
     @import './ui-kit.css';
    +
    +:root { --ds-accent: #0d9488; --ds-accent-hover: #0f766e; }
    +.dark { --ds-accent: #2dd4bf; --ds-accent-hover: #5eead4; }
    

    The token reference lists every variable.

  7. Rename the icons of your own nav entries in config/admin.php. Until you do, each entry with a 0.3 name shows a question-mark icon in the sidebar. The doctor's nav icons are Heroicons row names each one that does not resolve.

    0.3 name0.4 name
    gridsquares-2x2
    notedocument-text
    chartchart-bar
    historyclock
    mailenvelope (mail still works as an alias)
    users, ticket, clock, user-circleunchanged
    -['label' => 'Reports', 'route' => 'admin.reports', 'icon' => 'chart'],
    +['label' => 'Reports', 'route' => 'admin.reports', 'icon' => 'chart-bar'],
    

    Any other outline icon on heroicons.com works too.

  8. In views of your own, replace the 0.3 utilities, which no longer exist: bg-brand-*, text-brand-* and the rest of the ramp become token classes such as bg-accent and text-accent, and font-boldtext or font-booktext become plain font-semibold or nothing. Livewire lists of your own can take WithDesignSystemPagination in place of WithPagination (Customising). A layout of your own that should match the kit's needs Inter and the head component:

    <link rel="preconnect" href="https://fonts.bunny.net">
    <link href="https://fonts.bunny.net/css?family=inter:400,500,600,700&display=swap" rel="stylesheet" />
    <x-ui-kit::head />
    
  9. Build the assets:

    npm run build
    
  10. Check the result:

    php artisan ui-kit:doctor
    

    Every row passes. mail from address configured stays a skip until MAIL_FROM_ADDRESS is set, as on a fresh install. Open /login and /admin: Inter, the blue accent (or yours) and the new tables and stat tiles mean the upgrade is complete.

0.2 to 0.3

0.3 moves the kit from Livewire 3 and Volt to Livewire 4. The auth and profile pages stay single-file components at the same paths under resources/views/livewire/, with the same URLs and route names, and nothing changes on screen. What changes is the plumbing in two kinds of published file, which your app owns, so the update cannot rewrite them for you.

  1. If your own composer.json requires livewire/volt (it normally arrives through the kit), remove it first:

    composer remove livewire/volt --no-update
    
  2. Require the new minor. A ^0.2 constraint never picks up 0.3, so composer update alone does nothing, and -W lets Composer move Livewire from 3 to 4 and drop Volt:

    composer require shipbytes/laravel-ui-kit:^0.3 -W
    
  3. In routes/auth.php, replace every Volt::route( with Route::livewire( and delete the use Livewire\Volt\Volt; line.

  4. In every file under resources/views/livewire/, replace use Livewire\Volt\Component; with use Livewire\Component;.

  5. If the app has a VoltServiceProvider, remove it from bootstrap/providers.php and delete app/Providers/VoltServiceProvider.php.

  6. Check the result:

    php artisan ui-kit:doctor
    

    The rows Livewire 4 installed, routes/auth.php uses Route::livewire, views free of Volt imports and no Volt service provider should all pass. If views free of Volt imports fails, its hint lists the files step 4 missed.

Between steps 2 and 5 the app keeps working. 0.3 ships a transition shim that, while Volt is absent, points Livewire\Volt\Volt::route(), Volt::mount() and Livewire\Volt\Component at their Livewire 4 equivalents, so an unmigrated routes/auth.php still boots. The shim covers only what the kit's own files used and goes away in 1.0.

Update mode

The preflight check reads routes/auth.php. When the file carries the kit's ui-kit:managed header, the run is treated as an update rather than a collision: the installer prints Existing UI Kit install detected — updating in place, skips the Breeze and Jetstream warnings, and stays non-interactive. Existing files are kept. New files, new config keys, new routes between the markers and new migrations are added.

Pass --force to overwrite published files with the package's current stubs. Do that on a clean working tree, then review the diff and restore your edits.

The managed header

// ui-kit:managed — auto-loaded by UiKitServiceProvider. Delete this line to
// opt out of auto-loading and wire this file up yourself.

The service provider loads routes/auth.php, routes/admin.php and routes/ui-kit-user.php only when they carry this header. It is how the kit avoids double-registering a route file you wrote yourself, and how ui-kit:doctor knows which files it owns. Delete the line to take over a file; from then on you load it from bootstrap/app.php or your own provider, and the installer leaves it alone.

The markers

FileMarkersWho writes between them
config/admin.php/* ui-kit:nav-start */ … /* ui-kit:nav-end */Modules add navigation entries
routes/admin.php/* ui-kit:admin-routes-start */ … /* ui-kit:admin-routes-end */Modules add admin routes
routes/ui-kit-user.php/* ui-kit:user-routes-start */ … /* ui-kit:user-routes-end */Modules add user routes such as /profile
config/ui-kit.php/* ui-kit:modules-start */ … /* ui-kit:modules-end */The installer records installed modules

Patching is idempotent and keyed by route name or nav route, so re-running an install never duplicates an entry and never removes another module's. Keep the markers even when you reorder the lines around them; without them the installer warns and skips the patch.

Picking up changed stubs

A release note that says a published file changed means your copy did not. To see what changed, publish the tag into a scratch branch and diff:

git switch -c kit-upgrade
php artisan vendor:publish --tag=ui-kit-views --force
git diff

Keep the hunks you want, drop the rest, and run php artisan ui-kit:doctor before merging. Migrations are never re-published once they exist in database/migrations.

Versioning

Published versions are immutable; every publishable state gets a fresh tag. Before 1.0, breaking changes bump the minor version and are called out at the top of the entry.

Was this page helpful?