Repository navigation
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:doctorNo 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. Pointrepositoryat your own project, or setREPOSITORY_BADGE=falseto hide it. -
Restore users is now the Deleted tab of Users (
/admin/users?deleted=1); theadmin.users.restorepage 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.
- Only an API key connects to NetLicensing: remove
NETLICENSING_USERNAME,NETLICENSING_PASSWORDandNETLICENSING_SECURITY_MODEfrom.env. The shop's return addresses and button texts come from the application, soNETLICENSING_SHOP_SUCCESS_URL,NETLICENSING_SHOP_CANCEL_URL, their_TITLEsettings andNETLICENSING_FAKE_SHOP_URLare gone too.
No migration.
-
No shared demo product.
.env.exampleno longer carries a NetLicensing API key or theLB-DEMOproduct. Your.envdoesn't change; if it still usesLB-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']underentitlementsinconfig/permissions.php, with the newNETLICENSING_PRICING_MODULE_NUMBER. Routes take the feature as a thirdprotectionargument. Existing entitlements keep working. -
Test mode (
NETLICENSING_DRIVER=fake) simulates features fromfake.featuresinconfig/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.
Run php artisan migrate: it adds the announcements table and gives announcements.view to the default role.
- Users land on
/homeafter signing in, not on/membership./sends signed-in users there. - Every signed-in page uses the application shell.
resources/views/admin/layouts/admin.blade.phpmoved toresources/views/layouts/shell.blade.phpand now only extends it; pages of your own that extend either keep working. User pages that extendedlayouts.welcomecan extendlayouts.shellto get the sidebar. -
config/menu.phpstarts with aworkspacegroup for every user; the administration groups have'can' => 'admin.access'. A group of your own withoutcanis now shown to every signed-in user, so give admin groups that permission. -
/membershipshows every user their plan, whether or not it is valid, instead of redirecting. Use/member/exampleas 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 withcan:, as before.
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.comandjane@example.comas 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:doctorlists accounts whose addresses differ only in case: change or delete all but one of each. In your own code, look users up withUser::whereEmailIs()and validate withApp\Rules\UniqueEmail, notwhereEmail()orunique:users; a test intests/Unit/ConventionsTest.phpchecks it. -
Role managers grant only what they have. Under Permissions, someone with
roles.managewho 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.examplesetsNETLICENSING_DRIVER=fake. Your.envdoesn't change, and without the setting the application still asks NetLicensing. If you build.envfrom.env.examplefor production, setNETLICENSING_DRIVER=netlicensing. -
Stricter types. PHPStan runs at level 6, so
composer checkasks for parameter and return types in your code too. TheLicensinginterface has typed signatures: a licensing driver of your own needs the same.isAdmin()takes no argument and answersfalsefor guests. - The empty listeners
LogoutListener,RegisteredListenerandSocialLoginListenerare gone. If you filled one, keep your file: listeners are discovered from theirhandle()argument.
Run php artisan migrate, then check these:
- In
.env, renameCACHE_DRIVERtoCACHE_STORE,MAIL_DRIVERtoMAIL_MAILER,BROADCAST_DRIVERtoBROADCAST_CONNECTION, andAWS_KEY/AWS_SECRETtoAWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY. AddLOG_STACK=daily, which the dashboard log statistics need. - Kernels, the exception handler and several providers are gone. Use
bootstrap/app.phpandapp/Providers. - Laravel Mix became Vite, so replace
mix()with@vite. - Bootstrap 3, jQuery, Font Awesome and
laravelcollective/htmlare gone. Custom views need Gentelella 4 markup. - Language files moved from
resources/langtolang. - 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 needPOST. - Sign-in is processed by Laravel Fortify, and
laravel/uiis gone. Addresses, route names and sign-in rules are unchanged.php artisan migrateadds the two-factor columns tousersand thepasskeystable. Custom code that used traits oflaravel/ui(AuthenticatesUsersand others) needs its own code; seeapp/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
BackendPolicyneedsadmin.access. Your own admin routes should ask for a permission too. - The license screen moved from
/admin/permissionsto/admin/membership, with route namesadmin.membershipandadmin.membership.repeat. -
to_js(),@tojsand theToJsfacade are gone, and so iswindow.Laravel. Use Laravel's@jsorJs::from(). -
creativeorange/gravataris gone, withgravatar()and theGravatarfacade. Use$user->getGravatar();config/gravatar.phpstill applies. - The repository classes in
app/RepositoriesandGeneralExceptionare 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_toursremembers finished tours. -
barryvdh/laravel-ide-helperis no longer installed. Require it yourself if your editor needs it. - New passwords need at least eight characters.
- The Docker database moved from
./datato thedb-datavolume. Export the old data and import it.
Laravel Boilerplate
Project home | Laravel documentation | Labs64 NetLicensing | NetLicensing API