Skip to content

Upgrading

Alexey Averikhin edited this page Dec 4, 2026 · 6 revisions

How to bring an existing installation up to date. Your database stays: add migrations, never edit released ones, and table names don't change.

After pulling a new version:

composer install
php artisan migrate
npm ci && npm run build
php artisan app:doctor

December 2026: refreshed pages and a repository badge

No migration.

  • Repository badge. Signed-in pages show a link to the repository in config/app.php (repository) with its GitHub stars, asked from GitHub at most every six hours. Point repository at your own project, or set REPOSITORY_BADGE=false to hide it.
  • Restore users is now the Deleted tab of Users (/admin/users?deleted=1); the admin.users.restore page and its menu entry are gone. The restore action itself is unchanged.
  • The dashboard, Home, the account page, the sign-in pages, the admin screens and the error pages have a new layout. If you overrode one of their views, compare it with the new one. The admin Membership page names the connection in use (test mode, the shared demo product or your product) and lists the steps to connect your own.

December 2026: your own NetLicensing product, plans with features

  • Only an API key connects to NetLicensing: remove NETLICENSING_USERNAME, NETLICENSING_PASSWORD and NETLICENSING_SECURITY_MODE from .env. The shop's return addresses and button texts come from the application, so NETLICENSING_SHOP_SUCCESS_URL, NETLICENSING_SHOP_CANCEL_URL, their _TITLE settings and NETLICENSING_FAKE_SHOP_URL are gone too.

No migration.

  • No shared demo product. .env.example no longer carries a NetLicensing API key or the LB-DEMO product. Your .env doesn't change; if it still uses LB-DEMO, the admin Membership page says so. Create your own product with NetLicensing Setup.
  • Plans with features. A permission can need one feature of a Pricing Table plan: ['protection.pricing.product_module_number', 'REPORTS'] under entitlements in config/permissions.php, with the new NETLICENSING_PRICING_MODULE_NUMBER. Routes take the feature as a third protection argument. Existing entitlements keep working.
  • Test mode (NETLICENSING_DRIVER=fake) simulates features from fake.features in config/protection.php, and works with empty module numbers.
  • User::hasAccess() takes an optional feature; a licensing driver of your own returns Pricing Table answers in NetLicensing's shape for features to work.

December 2026: home page, areas and a shell for everyone

Run php artisan migrate: it adds the announcements table and gives announcements.view to the default role.

  • Users land on /home after signing in, not on /membership. / sends signed-in users there.
  • Every signed-in page uses the application shell. resources/views/admin/layouts/admin.blade.php moved to resources/views/layouts/shell.blade.php and now only extends it; pages of your own that extend either keep working. User pages that extended layouts.welcome can extend layouts.shell to get the sidebar.
  • config/menu.php starts with a workspace group for every user; the administration groups have 'can' => 'admin.access'. A group of your own without can is now shown to every signed-in user, so give admin groups that permission.
  • /membership shows every user their plan, whether or not it is valid, instead of redirecting. Use /member/example as the example of a page behind a licence.
  • The log chart of the dashboard needs logs.view.
  • Any administration permission now lets a role into the admin area, where it sees only the screens its permissions open. admin.access ("See the admin dashboard") opens the dashboard. Every admin screen of your own must ask for its permission with can:, as before.

December 2026: review fixes

No migration. Read these if you changed the affected code.

  • Email addresses are compared without case on every database. Before, SQLite and PostgreSQL could hold Jane@example.com and jane@example.com as two accounts. New addresses are stored in lower case; existing ones are kept, because an address can be a NetLicensing licensee number. php artisan app:doctor lists accounts whose addresses differ only in case: change or delete all but one of each. In your own code, look users up with User::whereEmailIs() and validate with App\Rules\UniqueEmail, not whereEmail() or unique:users; a test in tests/Unit/ConventionsTest.php checks it.
  • Role managers grant only what they have. Under Permissions, someone with roles.manage who isn't an administrator can change only the permissions they hold. See Roles and permissions.
  • Restoring a user asks the same rules as editing one: a user manager can't restore an account with more permissions than theirs.
  • No mail goes to made-up addresses. A social account from a provider that sends no address gets {id}@{provider}.com, a domain that belongs to somebody else. Nothing is sent there any more, password reset links included.
  • New installations run licensing offline. .env.example sets NETLICENSING_DRIVER=fake. Your .env doesn't change, and without the setting the application still asks NetLicensing. If you build .env from .env.example for production, set NETLICENSING_DRIVER=netlicensing.
  • Stricter types. PHPStan runs at level 6, so composer check asks for parameter and return types in your code too. The Licensing interface has typed signatures: a licensing driver of your own needs the same. isAdmin() takes no argument and answers false for guests.
  • The empty listeners LogoutListener, RegisteredListener and SocialLoginListener are gone. If you filled one, keep your file: listeners are discovered from their handle() argument.

From the Laravel 8 version

Run php artisan migrate, then check these:

  • In .env, rename CACHE_DRIVER to CACHE_STORE, MAIL_DRIVER to MAIL_MAILER, BROADCAST_DRIVER to BROADCAST_CONNECTION, and AWS_KEY / AWS_SECRET to AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY. Add LOG_STACK=daily, which the dashboard log statistics need.
  • Kernels, the exception handler and several providers are gone. Use bootstrap/app.php and app/Providers.
  • Laravel Mix became Vite, so replace mix() with @vite.
  • Bootstrap 3, jQuery, Font Awesome and laravelcollective/html are gone. Custom views need Gentelella 4 markup.
  • Language files moved from resources/lang to lang.
  • The reCAPTCHA rule is App\Rules\Recaptcha. The log viewer and breadcrumbs packages changed.
  • Deleting users needs DELETE; logging out, restoring users and repeating a license check need POST.
  • Sign-in is processed by Laravel Fortify, and laravel/ui is gone. Addresses, route names and sign-in rules are unchanged. php artisan migrate adds the two-factor columns to users and the passkeys table. Custom code that used traits of laravel/ui (AuthenticatesUsers and others) needs its own code; see app/Http/Controllers/Auth.
  • Roles can have permissions. Existing roles keep what they could do (nothing but the administrator's access), and the admin screens now ask for their permission, so a custom role that had access through the code of the old BackendPolicy needs admin.access. Your own admin routes should ask for a permission too.
  • The license screen moved from /admin/permissions to /admin/membership, with route names admin.membership and admin.membership.repeat.
  • to_js(), @tojs and the ToJs facade are gone, and so is window.Laravel. Use Laravel's @js or Js::from().
  • creativeorange/gravatar is gone, with gravatar() and the Gravatar facade. Use $user->getGravatar(); config/gravatar.php still applies.
  • The repository classes in app/Repositories and GeneralException are gone. Use the models.
  • The steps of the guided tour are no longer in admin/layouts/admin.blade.php. Each page gives its own with <x-tour>, and the button shows only on pages that do. users.completed_tours remembers finished tours.
  • barryvdh/laravel-ide-helper is no longer installed. Require it yourself if your editor needs it.
  • New passwords need at least eight characters.
  • The Docker database moved from ./data to the db-data volume. Export the old data and import it.

Clone this wiki locally