Updating
When a new version of WhatsMine is released, follow these steps to update safely.
Before you start
Always back up first
Back up your database and your .env file before updating. If anything goes wrong, you can restore.
php artisan db:backup
cp .env .env.backup
One-click update from the admin panel
Because your copy is licensed, WhatsMine can fetch and apply a release for you.
Location: Admin → License (/admin/license)

- Click Check for updates. The current version (
APP_VERSION) is compared against the latest release. - If one is available, click Apply update.
The updater then:
- Puts the app into maintenance mode.
- Downloads the release package and extracts it over the application — never touching
.env,storage/,.gitornode_modules. - Imports any SQL the release ships with.
- Runs
php artisan migrate --force. - Writes the new
APP_VERSIONinto.envand clears every cache. - Brings the app back up — including when a step fails.
Requirements: the PHP zip extension, and the application directory must be writable by the web server.
Overwriting files cannot be undone
The one-click updater replaces application files in place. There is no automatic rollback — take a database and file backup first, and try it on a staging copy before production.
After a one-click update, still rebuild assets and restart workers if you deploy your own frontend build:
npm ci && npm run build
php artisan queue:restart
If your host disallows writing to the application directory, use the manual steps below instead.
Update steps (manual)
Put the app in maintenance mode (optional but recommended):
php artisan downReplace the application files with the new version. Be careful not to overwrite:
- your
.envfile - your
storage/directory (uploads, logs, invoices) - any custom code you've added
If you use git,
git pullhandles this for you.- your
Update dependencies:
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev npm ciRun new migrations:
php artisan migrate --forceRebuild the frontend:
npm run buildRefresh caches and restart workers:
php artisan config:cache php artisan route:cache php artisan view:cache php artisan event:cache php artisan queue:restartBring the app back online:
php artisan up
After updating
- Check Admin → Cron Setup that the scheduler heartbeat is still green.
- Check Admin → Queue for failed jobs.
- Do a quick smoke test: log in, open the inbox, send a message.
Translations note
If an update adds new interface text, seed any new translation keys and refresh the translation cache:
php artisan i18n:scan
New languages and edits are managed in Admin → Languages. See i18n.
Rolling back
If an update causes problems:
- Restore your previous application files.
- Restore the database backup you took.
- Run
composer installandnpm run buildfor the old version. php artisan up.